linux 邮件 sendmail
检查有没有
ls /usr/sbin/sendmail
没有就安装
yum -y install sendmail
启动sendmail服务
/etc/init.d/sendmail start
3.测试发送邮件
echo 'This is test mail'>body.txt
mail -s 'Test mail' 715740383@163.com < body.txt
4.如果不成功,看一下日志
tail -f /var/log/maillog