Burns, John said:
> I was devising a plan for setting the failto option in cfmail to a
> certain email account that I could programatically check using CFPOP
> later and if I get emails bounced back to remove the address from
> the database so we don't send to them in the future.

Don't expect too much of it. CF can not handle all unicode encodings,
so cfpop will fail on quite a few emails.

> 1. Check some kind of error code or something to see if the failure
> was permanent (i.e. user doesn't exist, account deleted, etc. as
> opposed to "mailbox is full" or something like that.)

4xx = temporary failure
5xx = permanent failure

The first 80% or so is easy to identify reliably, then it gets harder,
especially with localized mailservers.

> 2. Grab the email address that failed (I'm guessing I could use a
> regex here)

You could, but you might also include an identifier header, quite a
few mail servers return all headers.

Jochem
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to