标签:
msmtp的配置文件/etc/msmtprc或~/.msmtprc:
1 account default 2 host smtp.qq.com 3 auth login 4 from youremail@qq.com 5 user youremail@qq.com 6 password yourpassword 7 logfile /usr/local/msmtp/msmtp.log
php.ini中设置:
sendmail_path = ‘/usr/bin/msmtp -t -i‘
之后将msmtprc的权限提至644:
sudo chmod 644 /etc/msmtprc
标签:
原文地址:http://www.cnblogs.com/devai/p/4299123.html