你在哪里发的?mail()是不设邮件服务器的!如果你在你的Windows机上,而你也没有设邮件服务器当然不能发送啦!如果你是在服务器上,那可能是那个服务器上不让你发.

解决方案 »

  1.   

    win2000
    Server Error in
    mail("email",$subject,$message);
      

  2.   

    原来是PHP啊,我以为我回答错了呢.去PHP版找一下完全可以找到答案!
      

  3.   

    刚好看到了,
    改下php.ini设置:
    [mail function]
    ; For Win32 only.
    SMTP = smtp.elong.com                ; For Win32 only.
    sendmail_from [email protected]; For Unix only.  You may supply arguments as well (default: 'sendmail -t -i').
    ;sendmail_path =