How To - Sending Emails w/ Shell

1) Add this to your node_bootstrap file:

yum -y install sendmail
yum -y install mail
service sendmail restart

2) Example Shell Command:

echo "email content" | mail -v -s "Email Subject" -a
/path/to/any/attachments.txt user@domain.com
 
Have more questions? Submit a request

Comments

Powered by Zendesk