Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

echo "This is a test" | sendmail xxx@yahoo.com

Configure Cron Jobs


Update Cron to mail to a particular userBecause cron uses a minimal shell, we need to update it's path. 

crontab -e


Set the path for cron and MAILTO at the beginning of the file.

Setting a MAILTO="" will disable cron from sending emails for jobs which generate output.

Code Block
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
MAILTO=""

...