Forum Moderators: coopster
I happened upon this closed thread while attempting to solve the riddle of the missing bounced emails:
[webmasterworld.com...]
I have tried all these headers
$headers = "From: robot@example.com\r\n";
$headers .= "Reply-To: robot@example.com\r\n";
$headers .= "Return-Path: robot@example.com\r\n";
$headers .= "Return-Receipt-To: robot@example.com\r\n";
$headers .= "Message-ID: <".$now." TheSystem@".$_SERVER['SERVER_NAME'].">\r\n";
$headers .= "X-Mailer: PHP v".phpversion()."\r\n";
mail('nobody@example.com', 'test bounce', 'bounce me', $headers);
And I have also tried the method in the post mentioned above:
mail('nobody@example.com', 'test bounce', 'bounce me', "From: robot@example.com\r\n", '-f robot@example.com');
The bounces do not show up in the robot@ account. There is also a default account for the root user that I have received other non-PHP-mail() bounces in and it also remains empty.
Any thoughts?
Thanks very much for reading!
Jerry Garciuh
[edited by: eelixduppy at 2:16 am (utc) on May 31, 2007]
[edit reason] exemplified domains [/edit]
mail('nobody@example.com', 'test bounce', 'bounce me', "From: robot@example2.com\r\n", '-f robot@example2.com');
produced results.
Yay!
Hope this helps someone else!
Jerry
[edited by: eelixduppy at 2:36 am (utc) on May 31, 2007]
[edit reason] use example.com, please [/edit]