[SysAdm]Send an email with sendemail on Ubuntu 12.04.3 - lifuzu/cafe GitHub Wiki
###Install packages:
sudo apt-get install sendemail
sudo apt-get install libio-socket-ssl-perl
###Usages:
sendemail -f [email protected] -t [email protected] -cc [email protected] -u "Message title" -m "The body of the message" -s smtp.foo.com:25 -xu username -xp password
with attachment
sendemail -f [email protected] -t [email protected] -cc [email protected] -u "Message title on `hostname`" -m "The body of the message" -a attachment.txt -s smtp.gmail.com:25 -xu username -xp password
###REFERENCES:
http://ubuntuforums.org/showthread.php?t=1127478