Re: [PHP] best way to log bad email address'

2002-07-25 Thread Miguel Cruz
On Thu, 25 Jul 2002, Justin French wrote: what's the best way to log the bad email address' from a mail() loop? From the manual: mail() returns TRUE if the mail was successfully accepted for delivery, FALSE otherwise. Is the definition of accepted for delivery dependent on each server,

Re: [PHP] best way to log bad email address'

2002-07-25 Thread Justin French
on 25/07/02 5:37 PM, Miguel Cruz ([EMAIL PROTECTED]) wrote: In almost every case, mail() will return true, regardless of how bogus the destination email address is. mail() just dumps it into the mail queue. There's a lot that goes on between there and delivery, and mail() doesn't wait

Re: [PHP] best way to log bad email address'

2002-07-25 Thread Manuel Lemos
Hello, On 07/25/2002 05:27 AM, Justin French wrote: You'll need to catch bounces as they come in. To make life easier, assign your own unique Message-IDs and remember them, so you can easily invalidate addresses. Erm, I'm on a shared server, so I don't *think* it's that easy unfortunately

[PHP] best way to log bad email address'

2002-07-24 Thread Justin French
Hi, what's the best way to log the bad email address' from a mail() loop? my guess is: ? $log = ''; $to = '[EMAIL PROTECTED]'; $subj = 'foo'; $msg = 'blah'; $head = 'From: [EMAIL PROTECTED]'; if(!mail($to,$sub,$msg,$head)) { $log .= {$to}\n; } // write $log to screen, or to a