Mercury Server& Server不接收Apache localhost mail()雷鸟

时间:2013-12-02 04:33:32

标签: php apache email xampp thunderbird

我将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

1 个答案:

答案 0 :(得分:2)

我评论了以下一行并且它有效。

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

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

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

我不知道为什么mailtodisk.exe默认被使用,但看起来这只是将邮件写入文件夹并且它没有被传递。