Whenever a cron job is executed, one can get email notification of cron job execution if the cron job doesn’t run successfully or there is a bug in cronjob file.
These are the steps in Terminal
1.crontab -e
2.MAILTO = xyz@gmail.com
3.Write cronjob.
Below is the cronjob error email: