Hi every body,
Here is an other issue I met when propgraming :
I can't send emails from my localhost server (sure some setting with the SMTP).
here is may config. :
- Windows XP Pro.
- IIS 5.1
- PHP 5.2.13 (ISAPI)
php.ini
[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25
; For Win32 only.
sendmail_from = webmaster@localhost
-----------------
After I send the email, It goes but directly to the badmail folder and generate the following files:
.BAD file with the following content :
From:
[email protected]
To: webmaster@localhost
Date: Sun, 11 Jul 2010 10:49:54 +0400
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
boundary="9B095B5ADSN=_01CB20A9DF44970600000005localhost"
Message-ID: <RGryWtIIZ0000001f@localhost>
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=_01CB20A9DF44970600000005localhost
Content-Type: text/plain; charset=unicode-1-1-utf-7
This is an automatically generated Delivery Status Notification.
Delivery to the following recipients failed.
[email protected]
--9B095B5ADSN=_01CB20A9DF44970600000005localhost
Content-Type: message/delivery-status
Reporting-MTA: dns;localhost
Received-From-MTA: dns;w012402
Arrival-Date: Sun, 11 Jul 2010 10:49:54 +0400
Final-Recipient: rfc822;
[email protected]
Action: failed
Status: 5.0.0
--9B095B5ADSN=_01CB20A9DF44970600000005localhost
Content-Type: message/rfc822
Received: from w012402 ([127.0.0.1] RDNS failed) by localhost with Microsoft SMTPSVC(6.0.2600.5949);
Sun, 11 Jul 2010 10:49:54 +0400
Date: Sun, 11 Jul 2010 10:49:52 +0400
From: webmaster@localhost
Subject: Testing the connection
To:
[email protected]
Return-Path: webmaster@localhost
Message-ID: <W012402IIZS2TRqf69a0000001f@localhost>
X-OriginalArrivalTime: 11 Jul 2010 06:49:54.0242 (UTC) FILETIME=[44A3C220:01CB20C5]
This only for testing sending a message
--9B095B5ADSN=_01CB20A9DF44970600000005localhost--
.BDR file with the following content :
Unable to deliver this message because the follow error was encountered: "This message is a delivery status notification that cannot be delivered.".
The specific error code was 0xC00402C7.
The message sender was <>.
The message was intended for the following recipients.
webmaster@localhost
Now, I'm asking for any help !!
Thanks a lot.