+ -
当前位置:首页 → 问答吧 → 求助:postfix安装成功,但不能使用php的mail()发邮件

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

时间:2007-08-07

来源:互联网

求助: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"

作者: aiiiq   发布时间: 2007-08-07

我的系统以前没装过sendmail
debian:~# mail
-bash: mail: command not found

作者: aiiiq   发布时间: 2007-08-07

自己编译安装的 php ?什么版本的 php ?

作者: flycraft   发布时间: 2007-08-07

不需要postfix,


apt-get install mailutils

然后重新编译php

作者: nbxmedia   发布时间: 2007-08-07

热门下载

更多