Re: Mail/Confirmation Script delivery problems
| From: | Richard Lynch | Date: | Tue, 03 Sep 2002 18:23:07 +0000 |
| Subject: | Re: Mail/Confirmation Script delivery problems | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-115068@lists.php.net to get a copy of this message | ||
>if(@mail($to, $subject, $message))
>.....
Is there an "else" clause here to tell you what went wrong if the email
didn't go out?...
Also add some headers like this:
$headers = "From: aajdubuc@webhart.net\r\n";
$headers .= "Reply-to: aajdubuc@webhart.net\r\n";
and change your mail() to:
mail($to, $subject, $message, $headers)
Now when your email fails to deliver, the "bounce" will come back to you
instead of, like, root@webhart.net or localhost or whatever, which is
probably not getting read by a human.
--
Like Music? http://l-i-e.com/artists.htm