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, or is
> there are general definition of what it means?

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 around.

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.

miguel


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to