How to set email address for Crontab to send notifications?


#1

Hi, I created a crontab job via ssh. I entered the command MAILTO=myeamail@google.com as the email address to send notification after it runs a job, but it is sending the notification to another email storing them in


#2

Hi @malena,

Command your have provided is correct. Do you recognize the email address its sending notifications to?

Put the MAILTO line into the crontab using crontab -e : MAILTO=my@email.com and not in /etc/crontab and retry.

Regards,
Ibad Rehman