Re: best way to log bad email address'

From: Date: Thu, 25 Jul 2002 07:37:27 +0000
Subject: Re: best way to log bad email address'
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-109434@lists.php.net to get a copy of this message
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

« previous php.general (#109434) next »