【发布时间】:2012-12-21 00:48:26
【问题描述】:
我的系统上安装了xmapp,我正在为我的网站使用 WordPress。现在在 WordPress 中,我使用联系表格 7 来发送邮件,当我从这个表格发送邮件时,它给了我错误,即联系你的系统管理员 bla bla bla ...
我为此目的使用了 wp mail SMTP 并正确配置了站点
在我的sendmail.ini 中,我设置了以下内容:
smtp_server=pop.gmail.com
smtp_port=587
smtp_ssl=TLS
;default_domain=localhost
auth_username= noreply@bllsoft.com
auth_password= -------
hostname=localhost
在我的 php.ini 文件中,我设置了以下内容:
;SMTP =
;smtp_port = 25
; sendmail_from = noreply@bllsoft.com
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
sendmail_path = "C:\xampp\sendmail\sendmail.exe -t -i"
我要做的就是修复它,但没有得到我想要的结果。
在 wamp 中,我已经完成了相同的设置,并且能够正确地从本地主机发送邮件,对此我很满意。
有时在 xampp 中,邮件发送消息来了,但我的收件箱中没有收到邮件,在这种情况下谁能帮助我
非常感谢您。
【问题讨论】:
-
@Daya,这完全是错误的。 PHP 的
mail有很多 问题,但这不是其中之一。 -
嗯。您的配置正在尝试使用
pop.gmail.com作为 SMTP 服务器。你不应该使用smtp.gmail.com吗? -
@Charles :我尝试了很多,但一次又一次地失败,即使它与 wamp 一起工作正常,我也不知道 xampp 会发生什么。
-
哪位高手解决这个问题?????
标签: php xampp sendmail.exe