标签:
vim /etc/mail.rc set asksub append dot save crt=20 ignore Received Message-Id Resent-Message-Id Status Mail-From Return-Path Via set from=xxx@163.com # 发件人 set smtp=smtp.163.com # smtp set smtp-auth=login set smtp-auth-user=xxx@163.com # smtp认证邮箱 set smtp-auth-password=xxxx # 注意现在163邮箱密码并不是网页登录密码,是一个专用的SMTP密码 set ssl-verify=ignore # ssl验证
echo "test"| mail -s ‘a test mail‘ -a /tmp/mail.rc.bak -a /tmp/test.py 10001@qq.com
标签:
原文地址:http://www.cnblogs.com/coolking/p/5646733.html