Linux 配置mail发送邮件
一、在/etc/mail.rc下添加如下内容
set from=lipingchang@pystandard.com
set smtp=smtp.pystandard.com
set smtp-auth-user=lipingchang@pystandard.com smtp-auth-password=xxxxx(注册的邮箱账号和密码)
set smtp-auth=login
二、发送邮件命令如下
echo 'hello!' | mail -s "hello test"(标题) 1209989516@qq.com(发送的目标邮箱)
三、qq发送邮件配置
http://blog.itpub.net/30345407/viewspace-1731938/