Forum Moderators: coopster

Message Too Old, No Replies

PHP mail() Bounces Missing

Where are bunces from PHP mail()

         

jerrygarciuh

2:07 am on May 31, 2007 (gmt 0)

10+ Year Member



Hello,

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]

jerrygarciuh

2:34 am on May 31, 2007 (gmt 0)

10+ Year Member



Well, it took an oddly long period of time but this method:

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]

leadegroot

3:12 am on May 31, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



(Note, re exemplification
I don't know what domain was used before this was exemplified, but 'nobody@example.com' won't bounce, so of course this example doesn't fail as expected. I'm sure the OP used an actual bouncing email address)