Programmable Feedback Notification for the Simple Email Service
The Amazon Simple Email Service (SES) gives you the power to programmatically send bulk or transactional emails from your application. Whether you send a few messages per month or millions every day, SES is able to accommodate you with a cost-effective, pay-as-you-go pricing model.
SES helps you to manage deliverability, the likelihood that an email you send will actually end up in the desired mailbox. In order for you to maximize deliverability, it is important that you keep your list of email addresses clean. For example, you need to handle complaints from ISPs and you need to properly handle temporary and permanent bounces.
Until now, SES delivered bounces and complaints to your mailbox. In order to respond, you had to identify and fetch the proper messages, parse them, and then figure out what to do.
Today, we are giving you a mechanism to simplify that process. You can now arrange for SES to notify you of bounces and complaints by sending JSON-formatted messages to the SNS (Simple Notification Service) topics of your choice.
You can set this up for each of the domains or email addresses that you use to send email, on a per-sender basis. Once set up, bounces and complaints will be routed to the topic. If the topic is deleted or becomes inaccessible, SES will revert to email-based notification.
Each notification contains three top-level fields:
- A notification type (either Bounce or Complaint).
- A Mail object with information about the mail message that triggered the notification.
- A Bounce object or a Complaint object, based on the value of the first field.
The Mail object looks like this:
The Bounce object looks like this:
The bounceType can be Undetermined, Permanent (you should stop sending email to the indicated recipients), or Transient (you can try again, after examining the bounceSubType to learn more about what caused the bounce).
And the Complaint object looks like this:
The complaintFeedbackType can be abuse, auth-failure, fraud, not-spam, virus, or other. The appropriate response to a complaint will depend on this field and on the recipient(s).
And there you have it! Consult the Amazon SES Documentation to learn more about this new feature.