Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can AWS SES send bounce/complaint objects to an http endpoint?

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.

Thanks.

like image 204
Peter Avatar asked Apr 07 '14 09:04

Peter


People also ask

Which AWS service can be used to send automated notifications to HTTP endpoints?

You can use Amazon SNS to send notification messages to one or more HTTP or HTTPS endpoints. When you subscribe an endpoint to a topic, you can publish a notification to the topic and Amazon SNS sends an HTTP POST request delivering the contents of the notification to the subscribed endpoint.

What is the difference between SNS and SES?

Amazon SES belongs to "Transactional Email" category of the tech stack, while Amazon SNS can be primarily classified under "Mobile Push Messaging".

What is AWS SES bounce?

Background. Amazon SES assigns a unique message ID to each email that you successfully submit to send. When Amazon SES receives a bounce or complaint message from an ISP, we forward the feedback message to you.


1 Answers

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., [email protected]).

like image 58
Jeremy Lindblom Avatar answered Oct 01 '22 00:10

Jeremy Lindblom