> From: "czamora" <[EMAIL PROTECTED]> > > I'm sending emails to the subscribers of my site using mail() with a fourth > parameter to specify the From: and Reply-To: headers. They seem to be sent > correctly and the users may reply to them and I get the replies in the > mailbox identified by these headers. > The problem is some email addresses I'm sending email to are incorrect, and > I should be receiving the email notification saying that the email could not > be delivered. But I'm not receiving these messages in my mailbox. > Any ideas why this could be so? > > Thanks a lot for any hints. > > I'm sending mails with: > > mail($to, $subject, $body, $from); > > where $from = "<[EMAIL PROTECTED]>\nReply-To: > [EMAIL PROTECTED]: PHP/" . phpversion(); > > I've also tried using \r\n instead of \n
Send yourself an email using PHP and examine the Return-Path listed in the source code. (The Return-Path is not the same as the From you're setting.) If you're using a commercial host (shared hosting), then the Return-Path is probably something like [EMAIL PROTECTED] My host provides Horde for web-based email, and bounces go to the master user account. HTH -- Lowell Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php