LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 988|回复: 3

请教关于 php 的 mail() 运行环境问题??

[复制链接]
发表于 2002-12-8 21:17:45 | 显示全部楼层 |阅读模式
php 代码:

  mail("admin@***.com","hello","My name is ywen18","From:admin@***.net");

  ...

  这个代码,我在windowns200 和 redhat8.0 环境下测试均通过,可以发送邮件...问题是在 redhat 7.2 下却不可以, why????

  redhat7.2

  php.ini设置:

  [mail function]
; For Win32 only.
;SMTP =localhost.
; For Win32 only.
;sendmail_from =me@localhost.com
; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
sendmail_path =sendmail -t -i


sendmail 服务器已运行....

请问: 是什么问题呢???

谢谢
发表于 2002-12-8 21:19:38 | 显示全部楼层
此帖转入程序版吧,让那里的弟兄指教一下。
多谢。
 楼主| 发表于 2002-12-8 21:47:19 | 显示全部楼层
谢谢
发表于 2002-12-9 11:22:55 | 显示全部楼层
这和sendmail服务是不是启动没有关系,主要看能不能找到sendmail程序,你看一下sendmail是不是在搜索路径里或者把sendmail的绝对路径写到配置文件里
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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