Forum Moderators: coopster

Message Too Old, No Replies

1 out of 3 e-mails don't arrive.

problem with script?

         

cameraguy

4:58 pm on Jan 16, 2006 (gmt 0)

10+ Year Member



Hello,

I send e-mails with the following script. It works, but approx. 1 out of 3 e-mails are not received. I checked and apparently I am not black-listed. Could there be a problem with my script (headers)?

$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
$headers .= "From: MySITE <support@mysite.net>\n";
$to = "$user_email";
$subject1 = "subject";
$message1="<FONT SIZE=-1 face=verdana><p>
<a href='http://www.mysite.net'>
Visit MySITE</p></font>";
mail($to, $subject1, $message1, $headers);

Thank you for your help!

Roberto

dreamcatcher

5:50 pm on Jan 16, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Are you on a shared hosting server? Has your hosting company imposed any restrictions with the PHP mail() function. Some servers only allow mail to be send to the addresses from the same domain (like mine does) to eliminate server abuse.

dc

cameraguy

6:30 pm on Jan 16, 2006 (gmt 0)

10+ Year Member



I am on a dedicated server and I send some 80 e-mails worldwide per day.

jatar_k

3:38 pm on Jan 17, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



have you checked your mail queue to see if they were actually sent?

cameraguy

12:09 pm on Jan 18, 2006 (gmt 0)

10+ Year Member



Huh... I do not know where to look for that.

And BTW, I am not getting any messages from servers saying that the addresses to which I sent the e-mail do not exist. But I am not surprised because when I send an e-mail manually, they do receive it.