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,
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
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
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
4 matches
Mail list logo