CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
英特尔®游戏设计大赛100美元现金周周送 专题改版:Java Web 专题
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  Web 开发 >  PHP

mail的问题,请教。。。

楼主sunauqt(泡泡龙)2003-11-02 18:48:58 在 Web 开发 / PHP 提问

我在使用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

相关问题

  • E-MAIL
  • Java Mail
  • PB同mail
  • java mail error?
  • e-mail主题
  • mail出错
  • mail() 问题??????????????????
  • 發送E-Mail
  • mail 控件
  • mail的问题

关键词

  • sendmail
  • php
  • qmail
  • mail
  • sbin
  • fixing
  • usr
  • support
  • build

得分解答快速导航

  • 帖主:sunauqt

相关链接

  • Web开发类图书

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
世纪乐知(北京)网络技术有限公司 版权所有, 京 ICP 证 020026 号
北京创新乐知广告有限公司 提供技术支持
Copyright © 2000-2007, CSDN.NET, All Rights Reserved
GongshangLogo