Re: [PHP] tracking Mials Which were bounced.

2008-05-13 Thread Aschwin Wesselius

Chetan Rane wrote:

Hi All

I am using a PHP Mailer to send mass mails.
How can I Identify how mails have bounced.
  


Hi,

I guess you have to read some RFC's to get an idea about e-mail protocols.
--

Aschwin Wesselius

/'What you would like to be done to you, do that to the other'/


Re: [PHP] tracking Mials Which were bounced.

2008-05-13 Thread mike
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.

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



Re: [PHP] tracking Mials Which were bounced.

2008-05-13 Thread Per Jessen
Chetan Rane wrote:

 Hi All
 
 I am using a PHP Mailer to send mass mails.
 How can I Identify how mails have bounced.
 

You send them with a bounce-address that uniquely identifies the
recipient - when the email bounces, you know exactly which recipient it
was.  I typically have my mailserver do a quick database update to set
a status for such bounces.


/Per Jessen, Zürich


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



Re: [PHP] tracking Mials Which were bounced.

2008-05-13 Thread Chris
mike wrote:
 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.

I use this method and it works reasonably well. The hard part is the
last sentence - there are so many ways to say mailbox full - half
don't include smtp error codes, the rest tell you the same thing in
thousands of different ways.

-- 
Postgresql  php tutorials
http://www.designmagick.com/

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



Re: [PHP] tracking Mials Which were bounced.

2008-05-13 Thread mike
On 5/13/08, Chris [EMAIL PROTECTED] wrote:

 I use this method and it works reasonably well. The hard part is the
 last sentence - there are so many ways to say mailbox full - half
 don't include smtp error codes, the rest tell you the same thing in
 thousands of different ways.

exactly. that's why i try to make it spread out - if there's failures
for 7 days, odds are that email account is dead/unused. worst case you
lose one person on your mailing list who doesn't check their email
often enough to be worthwhile :)

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



[PHP] tracking Mials Which were bounced.

2008-05-12 Thread Chetan Rane
Hi All

I am using a PHP Mailer to send mass mails.
How can I Identify how mails have bounced.


Chetan Dattaram Rane
Software Engineer
 
 






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