Home > php教程 > php手册 > body text

PHP mail发送邮件出现问题的详细解决办法

WBOY
Release: 2016-06-13 11:09:02
Original
823 people have browsed it

我们在使用

PHP mail发送邮件出现这样的状况的并发症还有,sendmail服务启动缓慢

查看sendmail的日志

/var/log/maillog

大致看出是hostname有问题

首先对比这两个文件

/etc/hosts

/etc/mail/local-hosts-name

保持一致,并确认 hostname 无误

查看和变更本机hostname方法是 hostname [newhostname:string]

编辑/etc/mail/sendmail.cf

查找到Dj$w一行,vi查找命令是/string

可以看到出示状态是被注释掉的,在这里增加一行

Dj$w.

设置完毕

/etc/init.d/sendmail restart

飞快重启

以上就是PHP mail发送邮件速度慢的解决办法。


source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!