问题
I'm trying to understand how to parse Delivery Status Notifications emails sent by Mailer Deamons when, for example, an email is sent to a non-existing mailbox or when to a full-of-space mailbox.
I had a look to the RFC3464 (http://www.ietf.org/rfc/rfc3464.txt), and to those questions:
- Detecting if an email is a "Delivery Status Notification" and extract information - Python
- Retrieve bounce notification / report in php
- How to handle Delivery Status Notification of GMail
- How to parse e-mail bounce notifications
What I can't understand is:
- Are ALL Mailer Deamons out there respecting RFC3464?
- I'm using PHP but I didn't really found a library to parse those emails; I think it's strange because I suppose that this is something not so new, I think others already had to do something like that in the past. Do you know some more resource I could take a look to?
How can I know all the possible errors that generate a bouncing email? How can I know ALL different formats of those emails so that I can write a proper parser?
What I need is:
- Know if an email I sent with PHPMailer (smtp) encountered an error didn't arrive to recipient;
- Know why.
Thank you.
来源:https://stackoverflow.com/questions/17172355/how-to-parse-delivery-status-notifications-emails-bounced-from-mailer-deamons