I’ve read through quite a lot of documentation already, and I’m still not clear or whether or not AWS is the right solution for our problem. The solution we need is:
- Send E-mails that are tracked for complaints & bounces
- Receive these bounces & complaints via an http endpoint (with information as to the e-mail address that was bounced, when and why)
I’ve seen that maybe something like this could be possible in connection with their SNS service, but the question remains open to me, whether these two services will actually work together to provide a detailed object with bounces/complaints to a url that I can then process & display as I wish.
Anyone had any experience or done something similar to what I would like to do, and what was your solution? Oh and my language of choice is PHP, if that helps.
Amazon SES can do what you are wanting to do.
You will use SES and SNS together. You can configure SES to publish complaints and bouncebacks to Amazon SNS topics. You can then subscribe an HTTP endpoint to these topics to receive notifications when complaints and bouncebacks occur. Here are some of the pages of the SES documentation that you are going to want to read:
- Amazon SES Feedback Notifications via Amazon SNS
- Configuring Amazon SES Feedback Notifications via Amazon SNS
- Processing Bounces and Complaints
For receiving the SNS messages in your PHP code, you can use the AWS SDK for PHP. The Receiving Amazon SNS Messages in PHP article on the AWS PHP Development Blog describes how to use the SDK to do this.
To test, you can use the SES Mailbox Simulator, which just involves using your account to send emails to special email addresses provided by SES (e.g., firstname.lastname@example.org).