mail()的放回值是true 为什么我的邮箱中没有邮件呢

解决方案 »

  1.   

    在我的C:\Inetpub\mailroot\Queue
    下有很多文件
    比如有这样一个文件
    From: postmaster@14984861C4564C1
    To: [email protected]
    Date: Sat, 28 Mar 2009 09:05:55 +0800
    MIME-Version: 1.0
    Content-Type: multipart/report; report-type=delivery-status;
    boundary="9B095B5ADSN=_01C9AF4158FD4C600000000114984861C4564C1"
    Message-ID: <FRaqbC8wS00000001@14984861C4564C1>
    Subject: Delivery Status Notification (Failure)This is a MIME-formatted message.  
    Portions of this message may be unreadable without a MIME-capable mail program.--9B095B5ADSN=_01C9AF4158FD4C600000000114984861C4564C1
    Content-Type: text/plain; charset=unicode-1-1-utf-7This is an automatically generated Delivery Status Notification.Unable to deliver message to the following recipients, due to being unable to connect successfully to the destination mail server.       [email protected]
    --9B095B5ADSN=_01C9AF4158FD4C600000000114984861C4564C1
    Content-Type: message/delivery-statusReporting-MTA: dns;14984861C4564C1
    Received-From-MTA: dns;14984861C4564C1
    Arrival-Date: Wed, 25 Mar 2009 17:24:47 +0800Final-Recipient: rfc822;[email protected]
    Action: failed
    Status: 4.4.7--9B095B5ADSN=_01C9AF4158FD4C600000000114984861C4564C1
    Content-Type: message/rfc822Received: from 14984861C4564C1 ([127.0.0.1]) by 14984861C4564C1 with Microsoft SMTPSVC(6.0.2600.2180);
     Wed, 25 Mar 2009 17:24:47 +0800
    Date: Wed, 25 Mar 2009 09:24:47 +0000
    Subject: ZDNet Developer article
    To: [email protected]
    From: [email protected]
    Reply-To: [email protected]
    Return-Path: [email protected]
    Message-ID: <14984861C4564C18NzP00000001@14984861C4564C1>
    X-OriginalArrivalTime: 25 Mar 2009 09:24:47.0218 (UTC) FILETIME=[8A4B9D20:01C9AD2B]I completely understand SMTP servers now!
    --9B095B5ADSN=_01C9AF4158FD4C600000000114984861C4564C1--
    这些表示什么呢
    没有搞怎么清楚
    谢谢指点
      

  2.   

    无论在什么系统下,个人建议你用smtp发邮件,网上应该有很多相应的代码。没有的话可以找我
      

  3.   

    phpmailer
    用smtp方式发送
    你只需要提供一个注册的邮箱,用户名及密码, 以及对应邮箱的发送服务地址就可以了.
    比如说
    [email protected] xxx xxx  pop3.sohu.com