I want to know when emails that I send with Amazon Simple Email Service (Amazon SES) bounce, are opened, or have links clicked.
Short description
To track email metrics in Amazon SES such as send volume, bounces, complaints, opens, and clicks, use Virtual Deliverability Manager. You must open the Virtual Deliverability Manager feature to view these statistics.
If you want to track activity outside of the console, then use Amazon Simple Notification Service (Amazon SNS) to receive notifications. Amazon SNS can send you alerts when a recipient opens your email, clicks a link in your email, and when your email bounces.
Resolution
Use Virtual Deliverability Manager to monitor email activity
Virtual Deliverability Manager tracks the status and user engagement for the emails that you send from Amazon SES. To set up and use this feature, see Getting started with Virtual Deliverability Manager.
You can to view detailed email metrics of your notified events in the Virtual Deliverability Manager dashboard. However, you don't receive updates or notifications outside of the dashboard. If you want to receive a notification for certain email events, then take the following actions to configure Amazon SNS notifications.
Use Event Destinations to track your sent emails
Each event destination that you set up belongs to one configuration set. When you set up an event destination with Amazon SES, choose the AWS service destination and specify the parameters for that destination. For more information about how to set up event destinations, see Add an event destination.
Use one of the following AWS services for your event destination:
- Amazon CloudWatch
- Amazon Data Firehose
- Amazon EventBridge
- Amazon Pinpoint
- Amazon SNS
Choose a destination based on how you want to receive the level of detail about the event information. For example, choose CloudWatch as the destination to get event counts and to set alarms. Or, choose Amazon SNS as the destination to get detailed event logs.
For more information about how to monitor sending activity in Amazon SES, see Monitoring your Amazon SES sending activity.
Use Amazon SNS to receive notifications for email activity
Prerequisite: Verify your domain with Amazon SES.
To configure Amazon SNS to notify you of email opens, link clicks, and bounces, complete the following steps.
Note: If you send an email to multiple recipients, then the following configuration doesn't show the recipients who open the email.
Create an SNS topic
To create an Amazon SNS topic, complete the following steps:
- Open the Amazon SNS console.
- Choose Topics.
- On the Topics page, choose Create topic.
- In the Details section, for Type, choose Standard.
- For Topic name, enter a name.
(Optional) For Display name, enter a topic display name.
- Choose Create topic.
- From the Topic details of the topic, choose Create subscription.
- For Protocol, choose Email-JSON.
- For Endpoint, enter the email address where you want to receive notifications.
- Choose Create subscription.
- From the email address, open the "AWS Notification - Subscription Confirmation" email from Amazon SNS.
- Open the SubscribeURL URL to confirm your subscription.
Configure Amazon SES to send information about email clicks, opens, and bounces to the SNS topic
To configure Amazon SES to send information to the SNS topic, complete the following steps:
- Open the Amazon SES console.
- Choose your AWS Region.
- In the navigation pane, under Configuration, choose Configuration Sets.
- Choose Create Set.
- For Configuration Set Name, enter a name.
- Choose Create Set.
- Choose the Event Destinations tab, and then choose Add Destination.
- For Event types, choose Hard Bounces, Opens and Clicks, and then choose Next.
- For Destination type, choose Amazon SNS.
- For Name, enter a name for the SNS destination.
- For SNS Topic, choose the Amazon SNS topic, and then choose Next.
- Choose Add Destination.
Send a test email to verify the notifications for email opens, clicks, and bounces
Amazon SES has a mailbox simulator that you can use to test email opens, clicks, and bounces. To use the mailbox simulator for tests, complete the following steps:
- Open the Amazon SES console.
- In the navigation pane, under Configuration, choose Verified Identities.
- Select one of your verified domains.
- Choose Send Test Email.
- For Message details, choose the email format Raw.
- For From-address, enter an email address with your verified domain.
- For Scenario, choose Custom to verify opens and clicks or Bounce to verify bounces.
- Enter an email address to use as a test recipient.
Note: For Custom, if you're in the Amazon SES sandbox, then you must use a verified email address in the Custom recipient field.
- For Message, enter text that's similar to the following examples.
Example custom scenario:
X-SES-CONFIGURATION-SET: myConfigset
From: test-verified-domain@example.com
To: test-recipient@example.com
Subject: Test email
Content-Type: multipart/alternative;
boundary="----=_boundary"
------=_boundary
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit
This is a test email.
<a href="https://aws.amazon.com/">Amazon Web Services</a>
------=_boundary--
Example bounce scenario:
X-SES-CONFIGURATION-SET: myConfigset
From: test-verified-domain@example.com
To: bounce@simulator.amazonses.com
Subject: Test email
Content-Type: multipart/alternative;
boundary="----=_boundary"
------=_boundary
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit
This is a test email.
<a href="https://aws.amazon.com/">Amazon Web Services</a>
------=_boundary--
Note: Replace myConfigset with the name of your configuration set.
- Choose Send Test Email.
- From your test recipient email address, open the test email, and then click the link.
Specify the configuration set in the headers of your email
To apply your configuration set to your email, pass the configuration set in your email headers.
Check your SNS notifications and Virtual Deliverability Manager metrics
To check your SNS notifications and Virtual Deliverability Manager metrics, complete the following steps:
- From the inbox of the email address that you used for your Amazon SNS topic subscription, confirm that you received the notifications.
- To check your email metrics, use the Virtual Deliverability Manager dashboard in the Amazon SES console.
Note: If you send an email to multiple recipients, then you can't display the email recipients.
Related information
Amazon SES email sending metrics FAQs
Virtual Deliverability Manager settings