天天看点

php发送邮件失败

Linux - SMP - x86_64 - GNU/Linux - 邮件

1.php.ini配置

sendmail_path = "/usr/sbin/sendmail -t -i"

2. /etc/postfix/main.cf  配置(如果不配的话,会访问外网的smtp代理,而线上服务器不允许访问外网)

relayhost = proxy-in.baidu.com

继续阅读