Re: tracking Mials Which were bounced.
| From: | mike | Date: | Tue, 13 May 2008 07:20:46 +0000 |
| Subject: | Re: tracking Mials Which were bounced. | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-274228@lists.php.net to get a copy of this message | ||
Seems like the general way is to create a mailbox (POP3 or IMAP) to
accept the bounces, then check it periodically and mark the emails as
invalid in your local database.
I would set threshholds so you don't mark something failed that only
bounced once - it could have been a mail setup error or something
else; I'd say wait for 3 failures in a 7 day period at least. If you
get 3 bounces by that point, the address is probably safely dead.
You can use PHP's IMAP functions to check the mailbox (even for POP3)
or a million classes or your own functions directly on the socket
(POP3 is a simple protocol) - it also helps if you parse the bounced
email message to process the return address and the mail code; perhaps
build something better than just 3 failures = invalid, but actually
determine if they're full out failures, or if they're just temporary
bounces, etc.
Another method: you could just parse mail logs, if you have access to them.
> Chetan Rane wrote:
> > Hi All
> >
> > I am using a PHP Mailer to send mass mails.
> > How can I Identify how mails have bounced.