Re: Mail/Confirmation Script delivery problems
| From: | Andre Dubuc | Date: | Tue, 03 Sep 2002 18:55:39 +0000 |
| Subject: | Re: Mail/Confirmation Script delivery problems | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-115075@lists.php.net to get a copy of this message | ||
Hi Richard,
Thank you for continuing to research this problem.
Just before the weekend, I talked to my IP about the problem I was having. He
thought it was strange: suggested I look at my browser settings to see what
was being passed.
To make a long story short, he mentioned that with 'mailto:' I
shouldn't be
having these problems. I told him that I was using 'mail()' -- [add a deep,
low, groan from my IP] Seems like 'mail()' has been banned for security
reasons by my IP (glad I found out now before I go 'live'!). He supplied a
workaround IP-made function called 'smtpmail()' to be used in its place.
Glad I checked. Thanks again for your help!
Regards,
Andre
On Tuesday 03 September 2002 02:23 pm, Richard Lynch wrote:
> >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.