1.首先下载一个发邮件的辅助软件(sendEmail-v1.56.tar.gz),由perl编写
http://caspian.dotconf.net/menu/Software/SendEmail/
下载sendEmail-v1.56.tar.gz
2.在linux centos上安装sendmail
yum install -y sendmail
service sendmail start
测试
/root/tools/sendEmail-v1.56/sendEmail -f 发件人 -t 收件人1,xxx@163.com -u "标题内容" -m "邮件内容"
转载于:https://my.oschina.net/forrest420/blog/609874