LinuxSir.cn,穿越时空的Linuxsir!

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

求助:postfix安装成功,但不能使用php的mail()发邮件

[复制链接]
发表于 2007-8-7 08:01:15 | 显示全部楼层 |阅读模式
求助:postfix安装成功,但不能使用php的mail()发邮件


在php里调用mail()有错误
Fatal error: Call to undefined function mail() in /home/test/mail.php on line 6

postfix-2.4.5已经安装成功了
debian:~# /usr/sbin/postfix start
postfix/postfix-script: starting the Postfix mail system

debian:~# netstat -ntulp | grep 25
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN     30421/master

php.ini的include路径
include_path = ".:/usr/local/php-5.2.3/lib/php:/usr/local/php-5.2.3/include:/usr/local/php-5.2.3:/usr/sbin"
 楼主| 发表于 2007-8-7 08:04:06 | 显示全部楼层
我的系统以前没装过sendmail
debian:~# mail
-bash: mail: command not found
回复 支持 反对

使用道具 举报

发表于 2007-8-7 08:49:40 | 显示全部楼层
自己编译安装的 php ?什么版本的 php ?
回复 支持 反对

使用道具 举报

发表于 2007-8-7 14:29:22 | 显示全部楼层
不需要postfix,


apt-get install mailutils

然后重新编译php
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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