我在这方面看了很久,虽然我找到了许多描述如何做到这一点的网站,但我仍然无法从使用WAMP和sendmail.exe的Windows8(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我是不是遗漏了什么?
发布于 2015-11-18 00:33:47
这个就是我脸上的蛋蛋。谢谢阿尔瓦罗。我如此专注于阅读那些文章,我只是没有想到要使用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 =https://stackoverflow.com/questions/33761481
复制相似问题