Re: [PHP] Return-Path header and sending email with php
You can use a class that sends mails by connecting directly to smtp server, e.g. http://www.phpclasses.org/mimemessage Chris Balay wrote: Good Day Coders - I have built a newsletter program with php. It sends out an e-mail to a couple thousand subcribers every day. All works well. My problem is that I have know way of finding out which e-mails are not being delivered successfully. My code is as follows: $to = stripslashes($row3[email_address]); $subject = stripslashes($row3[name]).'s Curmudgeon-Online for .date(F j, Y); $message = stripslashes($row3[name]).'s Curmudgeon-Online daily e-mail for .date(F j, Y). -- .$quotes; $headers = From: The Curmudgeon-Online [EMAIL PROTECTED]\r\n; $headers .= Return-Path: [EMAIL PROTECTED]; $headers .= Reply-To: [EMAIL PROTECTED]\r\n; mail($to, $subject, $message, $headers); This generated the following headers: Return-Path: [EMAIL PROTECTED] Received: from [127.0.0.1] (HELO ftp.pezcandyinc.com) by whiteplume.net (CommuniGate Pro SMTP 4.1.5) with ESMTP id 1692872 for [EMAIL PROTECTED]; Sun, 25 Jan 2004 04:03:25 -0500 Received: by ftp.pezcandyinc.com (8.12.9/8.12.9/Submit) id i0P93PqY017724; Sun, 25 Jan 2004 04:03:25 -0500 (EST) Date: Sun, 25 Jan 2004 04:03:25 -0500 (EST) Message-Id: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Chris Balay's Curmudgeon-Online for January 25, 2004 From: The Curmudgeon-Online [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] as a result any undeliverd messages are routed to [EMAIL PROTECTED], an address that does not exists. Is there any way to change the return-path header? Yours, Chris Balay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Return-Path header and sending email with php
Good Day Coders - I have built a newsletter program with php. It sends out an e-mail to a couple thousand subcribers every day. All works well. My problem is that I have know way of finding out which e-mails are not being delivered successfully. My code is as follows: $to = stripslashes($row3[email_address]); $subject = stripslashes($row3[name]).'s Curmudgeon-Online for .date(F j, Y); $message = stripslashes($row3[name]).'s Curmudgeon-Online daily e-mail for .date(F j, Y). -- .$quotes; $headers = From: The Curmudgeon-Online [EMAIL PROTECTED]\r\n; $headers .= Return-Path: [EMAIL PROTECTED]; $headers .= Reply-To: [EMAIL PROTECTED]\r\n; mail($to, $subject, $message, $headers); This generated the following headers: Return-Path: [EMAIL PROTECTED] Received: from [127.0.0.1] (HELO ftp.pezcandyinc.com) by whiteplume.net (CommuniGate Pro SMTP 4.1.5) with ESMTP id 1692872 for [EMAIL PROTECTED]; Sun, 25 Jan 2004 04:03:25 -0500 Received: by ftp.pezcandyinc.com (8.12.9/8.12.9/Submit) id i0P93PqY017724; Sun, 25 Jan 2004 04:03:25 -0500 (EST) Date: Sun, 25 Jan 2004 04:03:25 -0500 (EST) Message-Id: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Chris Balay's Curmudgeon-Online for January 25, 2004 From: The Curmudgeon-Online [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] as a result any undeliverd messages are routed to [EMAIL PROTECTED], an address that does not exists. Is there any way to change the return-path header? Yours, Chris Balay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Return-Path header and sending email with php
Chris -- You have started a new thread by taking an existing message and replying to it while merely changing the Subject: line. That is bad, because it breaks threading. Whenever you reply to a message, your mail client generates a References: header that tells all recipients to which posting(s) your posting refers. A mail client uses this information to build a thread tree of the postings so that it is easy to see just how they relate to each other. With your posting style you successfully torpedoed this useful feature; your posting shows up within an existing thread even though it is completely unrelated. Always do a fresh post when you want to start a new thread. That means that you do not select any sort of Reply when you start your message. You can save the list address in your address book (or equivalent) for convenience. ...and then Chris Balay said... % % Good Day Coders - Hello! % % I have built a newsletter program with php. It sends out an e-mail to a % couple thousand subcribers every day. All works well. My problem is that I Interesting. I'm always astonished the people use php for mailing list work instead of just using mailing list software. But I'm glad it works. % have know way of finding out which e-mails are not being delivered % successfully. If you're running under safe mode, you're apparently stuck. If you're not, you need to go back and read the manual again. It's either the second gunman on the grassy knoll or the fifth parameter ;-) HTH HAND :-D -- David T-G * There is too much animal courage in (play) [EMAIL PROTECTED] * society and not sufficient moral courage. (work) [EMAIL PROTECTED] -- Mary Baker Eddy, Science and Health http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg! pgp0.pgp Description: PGP signature