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

解决方案 »

  1.   

    最重要的是
    SMTP = mail.XXX.com
    这个mail.XXX.com应该是不用身份验证的,否则是无法发信
    网上有很多这样的服务器,你不一定要用自己的SMTP服务器,在内部网中使用也是一样的
      

  2.   

    最好有自己的MailServer
    注意:SMTP只是协议,Windows2000里的SMTP是不能用来发邮件的。Windows 下的邮件服务器,我觉得挺不错的:
    http://www.mistruster.com/soft/merak.zip
      

  3.   

    转(不知名网站):
    用editplus或nodepade打开你的php3.ini或是php.ini文件,查看一下[mail function]有没有设置好,默认的情况如下所示:
    SMTP = localhost 
    sendmail_from = [email protected]
    给SMTP设置SMTP服务器,最好是你当地的SMTP服务器,我这里以21cn的SMTP服务器作为例子,然后,在sendmail_from处填上你的E-MAIL地址,例如可以改成这样:
    SMTP = smtp.21cn.com
    sendmail_from = [email protected] 
    修改后不要忘了重启Apache,IIS或PWS服务
    这里是php中的需设置的地方
      

  4.   

    我想还是自己架设一个SMTP的服务器嘛。
    这样比较好。