mail的问题,请教。。。
我在使用MAIL函数的时候,提示我如下错误:
Warning: mail() is not supported in this PHP build
请问是什么原因?我是用的QMAIL系统,sendmail的路径是
/usr/sbin/sendmail
其中:
/usr/sbin/sendmail -> /usr/local/qmail/bin/sendmail
问题点数:0、回复次数:6Top
1 楼rockypan()回复于 2003-11-02 19:55:33 得分 0
可能是PHP版本太低,用4。0以上的应该就可以了。Top
2 楼sunauqt(泡泡龙)回复于 2003-11-02 20:22:49 得分 0
怎么会这样呢?郁闷。。。Top
3 楼feel8(Max.H)回复于 2003-11-02 21:35:45 得分 0
好像是不支持mail函数。
echo function_exists('mail')Top
4 楼sunauqt(泡泡龙)回复于 2003-11-03 13:13:46 得分 0
支持的,显示的结果为1Top
5 楼blueoxygen(有你在身旁 心更坚强)回复于 2003-11-03 14:06:51 得分 0
This problem/fix should be here since it oddly takes a long time to find the answer on the internet, yet the problem seems common. If you get
mail() not supported in this PHP build
when trying to use this function then you need to recompile. This happens during configure if /sbin/sendmail is not found. For some reason PHP decides to leave out mail support entirely if it can't find this file while configuring for build. If you run qmail or some other sendmail replacement it is very likely this could be your situation. To fix, make sure the appropriate file or symlink exists. To be safe, why not make a symlink from /usr/sbin/sendmail too. In the case of qmail, these should both point to /var/qmail/bin/sendmail which is qmail's sendmail wrapper.
After fixing that, delete config.cache and start your build over again and reinstall. Thanks to Surojit Niyogi -- and Google, for caching the page on the www.bajaar.com where he posted this simple solution which was unfortunately broken at the time I was looking for an answer.
Top
6 楼xinyaoxp(云枫)回复于 2003-11-04 10:22:28 得分 0
不支持Top




