sudo apt-get install sendmemail echo $CONTENT_BODY | \ sendEmail -f $FROM -t $TO1 $TO2 \ -s $MAIL_SERVER_HOSTNAME -u $SUBJECT > /dev/nullHere is an example of its usage from cron BTW.
Thursday, June 19, 2014
The most efficient way to send emails from Ubuntu shell script or cron
What is the most efficient way to send an email from Ubuntu shell script or cron? I have found sendEmail wins the battle: