脚本宝典收集整理的这篇文章主要介绍了php – Sendmail问题:已成功发送但从未到达,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
所以我试图从终端手动发送一些邮件,但问题仍然存在. sendmail没有给我一个错误,除了无法确定域错误,我通过将我的开发机器的域添加到/ etc / hosts并将其与127.0.0.1相关联来修复.
andreas@Andreas-PC-ubuntu:~$sendmail xxxxxxx@xxxxxxx.COM test . andreas@Andreas-PC-Ubuntu:~$
除了没有错误,sendmail会在/VAR/LOG/mail.log中记录邮件已成功发送:
APR 7 01:16:21 Andreas-PC-Ubuntu sendmail[11759]: q36NGIfD011759: From=andreas,size=5,class=0,nrcpts=1,msgid=<201204062316.q36NGIfD011759@home.hagenz.com>,relay=andreas@localhost Apr 7 01:16:21 Andreas-PC-Ubuntu sm-mta[11760]: q36NGL1J011760: from=<andreas@home.hagenz.com>,size=299,proto=ESMTP,daemon=MTA-v4,relay=ip6-localhost [127.0.0.1] Apr 7 01:16:21 Andreas-PC-Ubuntu sendmail[11759]: q36NGIfD011759: to=xxxxxxx@xxxxxxx.com,ctladdr=andreas (1000/1000),delay=00:00:03,xdelay=00:00:00,mailer=relay,pri=30005,relay=[127.0.0.1] [127.0.0.1],dsn=2.0.0,stat=Sent (q36NGL1J011760 Message accepted for delivery)
那么,有什么建议吗?
以上是脚本宝典为你收集整理的php – Sendmail问题:已成功发送但从未到达全部内容,希望文章能够帮你解决php – Sendmail问题:已成功发送但从未到达所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。