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