Can anyone point me in the right direction to how I would handle capturing bounced email info. I’m looking into writing an email campaign manager and would like the ability to report that data.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Bounced email is slang for a Non Delivery Report or NDR. Most smtp servers have their own ways to handle NDRs, typically via a BADMAIL folder.
So first of all, confirm what your SMTP server software does for NDRs. Then confirm that this is working correctly. I think that if an email fails to send, the sender will get notified .. but if the sender can’t be notified (ie. do not reply email, etc) I think this is how it ends up in the BADMAIL folder.
Anyway – you need to find out and confirm that the software you’re using handles NDRs. Once it does, it’s easy to write some code to check that folder every ‘whatever’ or even put a filewatcher on it, and then parse the content of each file that is added to that folder.