VPS侦探论坛

 找回密码
 注册
查看: 12297|回复: 7

wp无法发送邮件,提示mail()无效

[复制链接]
发表于 2011-5-24 13:03:28 | 显示全部楼层 |阅读模式

原本用老版本好好的,为了尝新,就装了新版本的LNMP。

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

不知道如何解决,希望军哥给予指点。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2011-5-24 13:16:48 | 显示全部楼层


没装sendmail吧

或安装个smtp的插件用smtp发
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2011-5-24 13:38:12 | 显示全部楼层

似乎真没装sendmail,yum了一个

现在那个提示没了,但测试结果还是无法收到邮件。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2011-5-24 13:43:32 | 显示全部楼层



[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函数的配置

不知道如何修改才对
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2011-5-24 13:56:30 | 显示全部楼层

好像不用改,默认好像就可以发

军哥运维代购:http://shop63846532.taobao.com/

 楼主| 发表于 2011-5-24 14:00:03 | 显示全部楼层

收不到的说。请教军哥,这如何才能解决?
发表于 2011-5-24 14:15:56 | 显示全部楼层

php。ini里; sendmail_path =  改成
sendmail_path = sendmail -t -i 试试

我没配过sendmail,不是太清楚,我都用smtp插件
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2015-9-9 00:33:41 | 显示全部楼层

可能只是你vps里面的某个服务挂了… 上次也碰到这个问题… 不过我是网站搬家后出现的…
你可以试下 smtp config 这个插件…
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-3-19 15:10 , Processed in 0.027895 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表