VPS侦探论坛

标题: wp无法发送邮件,提示mail()无效 [打印本页]

作者: anitan    时间: 2011-5-24 13:03
标题: wp无法发送邮件,提示mail()无效
原本用老版本好好的,为了尝新,就装了新版本的LNMP。

但发现注册的会员收不到邮件,提示什么mail()函数无效之类的警告。

不知道如何解决,希望军哥给予指点。
作者: licess    时间: 2011-5-24 13:16
没装sendmail吧

或安装个smtp的插件用smtp发
作者: anitan    时间: 2011-5-24 13:38
似乎真没装sendmail,yum了一个

现在那个提示没了,但测试结果还是无法收到邮件。
作者: anitan    时间: 2011-5-24 13:43
[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

; For Win32 only.
;sendmail_from = me@example.com

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

; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =

以上是mail函数的配置

不知道如何修改才对
作者: licess    时间: 2011-5-24 13:56
好像不用改,默认好像就可以发
作者: anitan    时间: 2011-5-24 14:00
收不到的说。请教军哥,这如何才能解决?
作者: licess    时间: 2011-5-24 14:15
php。ini里; sendmail_path =  改成
sendmail_path = sendmail -t -i 试试

我没配过sendmail,不是太清楚,我都用smtp插件
作者: doobom    时间: 2015-9-9 00:33
可能只是你vps里面的某个服务挂了… 上次也碰到这个问题… 不过我是网站搬家后出现的…
你可以试下 smtp config 这个插件…




欢迎光临 VPS侦探论坛 (https://bbs.lnmp.com/) Powered by Discuz! X3.4