装完军哥的LNMP发现无法发送邮件,先检测下25 port是否被封,发现没有,SMTP能正常发送,但是非常不喜欢SMTP发送,喜欢直接用mail()发
重装sendmail
yum -y install sendmail
修改PHP.ini中sendmail_path
vi php.ini
搜索sendmail_path
去除;并且在在后面填上/usr/sbin/sendmail -t –i
[php]sendmail_path = /usr/sbin/sendmail -t –i[/php]

Last modification:December 26th, 2017 at 12:58 am
If you think my article is useful to you, please feel free to appreciate