Rejected Email Format

Author
Discussion

PetrolTed

Original Poster:

34,445 posts

314 months

Saturday 29th November 2003
quotequote all
Does anyone know if there are standards for the format of rejection messages from email providers?

I need to parse rejection messages that I receive in response to my outgoing mail lists in a more efficient manner than I'm doing currently. I'd like to know if there are some defined formats for the mails that I will be parsing.

ErnestM

11,621 posts

278 months

Saturday 29th November 2003
quotequote all
Ted, don't know if this will help but...

Everything you wanted to know about SMTP mail but where to bored to ask :

www.imc.org/rfcs.html

ErnestM

kdd

1,189 posts

262 months

Saturday 29th November 2003
quotequote all
Ted,
The format of the mail that comes back to your e-mail account can vary in format and wording, as it is dependant on the mail server/mta that generates it.
If it's actual SMTP session debug you want to parse, then basically a 2xx code is "OK", 4xx code is a temporary failure, 5xx code is a permanent failure.
Cheers,
Karl