1.安装sendmail
yum -y install sendmail
2.启动sendmail
sendmail start
3.发送邮件
echo "this is content" | mail -s "this is title" xx@163.com
4.提示mail命令时,进行安装mail
yum -y install mailx
转载于:https://blog.51cto.com/suyanzhu/2391642
1.安装sendmail
yum -y install sendmail
2.启动sendmail
sendmail start
3.发送邮件
echo "this is content" | mail -s "this is title" xx@163.com
4.提示mail命令时,进行安装mail
yum -y install mailx
转载于:https://blog.51cto.com/suyanzhu/2391642