【问题标题】:Apache localhost mail() not being received with Mercury Server & ThunderbirdMercury Server 和 Thunderbird 未收到 Apache localhost mail()
【发布时间】:2013-12-17 17:24:45
【问题描述】:

我将 Windows XAMPP 升级到 1.8.3 并尝试使用 Apache 2.4.4、Mercury Mail 4.6 和 Thunderbird 客户端 24.1.1 在 localhost 上(再次)运行 php。 Thunderbird 可以在两个帐户之间发送和接收邮件。 php 的 mail() 返回 true,但没有邮件通​​过。

php.ini 设置为监听 25 端口。

[mail function]
; XAMPP: Comment out this if you want to work with an SMTP Server like Mercury
 SMTP = localhost (I've also tried 127.0.0.1)
 smtp_port = 25

任何想法我可能会错过什么?提前致谢。

注意:sendmail.ini 也有

smtp_server=localhost
smtp_port=25

【问题讨论】:

  • 您是否尝试从水星测试电子邮件?
  • 也许是个愚蠢的问题。 Mercury 是服务器。除了使用 Thunderbird 之外,我如何测试来自它的电子邮件?
  • 是的,这是一个很好的教程。它启发我删除了我在 Thunderbird 中的两个 imap 帐户并尝试使用 pop3。仍然没有运气。奇怪的是 php.log 中没有错误,并且 sendmail 日志不存在。

标签: php apache email xampp thunderbird


【解决方案1】:

我注释掉了以下行并且它起作用了。

; sendmail_path="C:\xampp\mailtodisk\mailtodisk.exe"

为了更好的衡量,我将其更改为:

sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"

我不知道为什么默认使用 mailtodisk.exe,但似乎这只是将邮件写入文件夹而没有送达。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-01-08
    • 1970-01-01
    • 2012-10-06
    • 2015-02-27
    • 1970-01-01
    • 2014-06-29
    • 2014-04-03
    相关资源
    最近更新 更多