1.
vi /etc/mail.rc
文末增加
set from="[email protected]"
set smtp="128.1.30.200"
set smtp-auth-user="ittest" smtp-auth-password=“”
set smtp-auth="login"
2.
vi sendmail.sh
echo "正文" | mail -s "主题" @.com
chmod +x sendmail.sh
原文地址:http://blog.51cto.com/junch/2096861
时间: 2024-10-24 15:59:44