Re: Problem receiving notification emails to mails sent with php

From: Date: Sat, 21 Jun 2003 13:10:11 +0000
Subject: Re: Problem receiving notification emails to mails sent with php
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-152385@lists.php.net to get a copy of this message
> From: "czamora" <news.php.net@hypernovels.com> > > 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 = "<webmaster@mysite.com>\nReply-To: > webmaster@mysite.com\nX-Mailer: 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 user@servername.hostingcompany.com. My host provides Horde for web-based email, and bounces go to the master user account. HTH -- Lowell Allen

« previous php.general (#152385) next »