I am using Amazon SES. How will I track the bounce email messages using PHP?

Ranajit B picture Ranajit B · Oct 18, 2013 · Viewed 20.4k times · Source

I am using Amazon SES service. But I couldn't understand how will I track the bounce email messages using PHP and keep store those email logs in database. I have a reference link of Amazon blog, but the solution given there is on C#(http://sesblog.amazon.com/post/TxJE1JNZ6T9JXK/Handling-Bounces-and-Complaints). Need help and assistance. Thank you.

Answer

Uday Kumar Reddy picture Uday Kumar Reddy · Aug 4, 2015

Create a SNS topic for bounces and complaints and link it to your SES (go to view details tab - Edit config - link the respective SNS complains & bounces topics).

Make sure to subscribe the SNS topic you created either to your mail ID or http/s based on your requirement. Whenever there is bounce or complaint is tagged for the SES message you will receive a JSON data which can later to processed as per your need.

A very helpful AWS webinar follows here: https://www.youtube.com/watch?v=n3Fr0bCsIvo