【发布时间】: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