【问题标题】:Unable to get mail() to work on WAMP Server无法让 mail() 在 WAMP 服务器上工作
【发布时间】:2015-11-17 15:59:51
【问题描述】:

我对此进行了相当多的研究,虽然我发现许多网站都描述了如何做到这一点,但我仍然无法使用 WAMP 和 sendmail.exe 从 Windows 8(64 位)VM 发送邮件.我检查了 sendmail.ini 和 php.ini 中的设置,根据我阅读的内容,我准备好了:

[mail function]
; For Win32 only.
; http://php.net/smtp
; SMTP = mail.yourdomain.com
; http://php.net/smtp-port
; smtp_port = 25

; For Win32 only.
; http://php.net/sendmail-from
; sendmail_from = you@yourdomain.com

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
;sendmail_path =
sendmail_path = C:\wamp\bin\sendmail\sendmail.exe -t

我错过了什么吗?

【问题讨论】:

  • 我不是 Wamp 用户,但我认为 Windows 不适合 Unix :-?
  • 我知道,但这是我在找到的所有文章中看到的相同建议。
  • 好吧,这一定是 Wamp Server 开发人员的一些黑客行为。无论如何,你是如何测试这个的,你面临什么确切的问题? “不起作用”尽可能地模糊和笼统。

标签: php windows email wamp sendmail


【解决方案1】:

这个我脸上的鸡蛋。谢谢阿尔瓦罗。我非常专注于关注那些我只是没想过使用 Win32 的文章,尤其是因为他们说仅限 Win32。

对我来说。问题解决:

[mail function]
; For Win32 only.
; http://php.net/smtp
 SMTP = mail.yourdomain.com
; http://php.net/smtp-port
 smtp_port = 25

; For Win32 only.
; http://php.net/sendmail-from
 sendmail_from = you@yourdomain.com

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
;sendmail_path =

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-06-15
    • 2012-05-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-12-30
    • 1970-01-01
    相关资源
    最近更新 更多