RE: [PHP] Unreliable mail delivery through PHP

2004-12-14 Thread Chris W. Parker
Jason Wong on Monday, December 13, 2004 10:52 PM said: > On Tuesday 14 December 2004 07:43, Chris W. Parker wrote: > >> $headers = "From: $from\n" >> ."Reply-To: $from\n" >> ."X-Mailer: PHP/".phpversion(); > > Headers should be separ

Re: [PHP] Unreliable mail delivery through PHP

2004-12-13 Thread Jason Wong
On Tuesday 14 December 2004 07:43, Chris W. Parker wrote: > $headers = "From: $from\n" > ."Reply-To: $from\n" > ."X-Mailer: PHP/".phpversion(); Headers should be separated by "\r\n". Not sure why you're duplicating the From:. > Assuming all the email addresses ar

RE: [PHP] Unreliable mail delivery through PHP

2004-12-13 Thread Chris W. Parker
Richard Lynch on Monday, December 13, 2004 4:09 PM said: >> mail($to, $subject, $body, $headers); > > The mail() function returns true/false upon success/failure in > injecting the email into the mail queue. > > You should be grabbing and checking the return va

Re: [PHP] Unreliable mail delivery through PHP

2004-12-13 Thread Richard Lynch
> mail($to, $subject, $body, $headers); The mail() function returns true/false upon success/failure in injecting the email into the mail queue. You should be grabbing and checking the return value. It's probably not the culprit here, but is Good Programming Practice. > Assuming all the emai