tabasca Posted July 11, 2010 Share Posted July 11, 2010 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: postmaster@mycomputer.mycompany.com 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. tabasca37@hotmail.com --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;tabasca37@hotmail.com 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: tabasca37@hotmail.com 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. Quote Link to comment https://forums.phpfreaks.com/topic/207401-sending-email-with-php-using-smtp-server/ Share on other sites More sharing options...
tabasca Posted July 12, 2010 Author Share Posted July 12, 2010 Hi, I'm waiting for your genuis help !! thks Quote Link to comment https://forums.phpfreaks.com/topic/207401-sending-email-with-php-using-smtp-server/#findComment-1084790 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.