有什么错呢?
一般如果SMTP有身份验证,mail()是发不出邮件的.

解决方案 »

  1.   

    Receiver: [email protected]: Failed to Connect in C:\Inetpub\wwwroot\ilmat\proc300sa.php3 on line 209
    这是错误提示
      

  2.   

    The Windows implementation of mail() differs in many ways from the Unix implementation. First, it doesn't use a local binary for composing messages but only operates on direct sockets which means a MTA is needed listening on a network socket (which can either on the localhost or a remote machine). Second, the custom headers like From:, Cc:, Bcc: and Date: are not interpreted by the MTA in the first place, but are parsed by PHP. PHP < 4.3 only supported the Cc: header element (and was case-sensitive). PHP >= 4.3 supports all the mentioned header elements and is no longer case-sensitive. 注: You must use \r\n to separate headers, although some Unix mail transfer agents may work with just a single newline (\n).