Simple Email Service (SES)
Introduction
Section titled “Introduction”Simple Email Service (SES) is an emailing service that can be integrated with other cloud-based services. It provides API to facilitate email templating, sending bulk emails and more.
The supported APIs are available on the API coverage page for SESv1 and SESv2.
Getting Started
Section titled “Getting Started”This is an introductory guide to get started with SES.
Basic knowledge of the AWS CLI and LocalStack lstk aws command is assumed.
Start LocalStack for AWS using your preferred method.
To be able to send emails, we need to create a verified identity. A verified identity appears as part of the ‘From’ field in the sent email.
A singular email identity can be added using the VerifyEmailIdentity operation.
lstk aws ses verify-email-identity --email hello@example.com
lstk aws ses list-identities{ "Identities": [ "hello@example.com" ]}Next, emails can be sent using the SendEmail operation.
lstk aws ses send-email \ --from "hello@example.com" \ --message 'Body={Text={Data="This is the email body"}},Subject={Data="This is the email subject"}' \ --destination 'ToAddresses=jeff@aws.com'{ "MessageId": "labpqxukegeaftfh-ymaouvvy-ribr-qeoy-izfp-kxaxbfcfsgbh-wpewvd"}Retrieve Sent Emails
Section titled “Retrieve Sent Emails”LocalStack keeps track of all sent emails for retrospection. Sent messages can be retrieved in following ways:
-
API endpoint: LocalStack provides a service endpoint (
/_aws/ses) which can be used to return in-memory saved messages. AGETcall returns all messages. Query parametersidandemailcan be used to filter by message ID and message source respectively.Terminal window curl --silent localhost.localstack.cloud:4566/_aws/ses?email=hello@example.com | jq .Output {"messages": [{"Id": "dqxhhgoutkmylpbc-ffuqlkjs-ljld-fckp-hcph-wcsrkmxhhldk-pvadjc","Region": "eu-central-1","Destination": {"ToAddresses": ["jeff@aws.com"]},"Source": "hello@example.com","Subject": "This is the email subject","Body": {"text_part": "This is the email body","html_part": null},"Timestamp": "2023-09-11T08:37:13"}]}A
DELETEcall clears all messages from the memory. The query parameteridcan be used to delete only a specific message.Terminal window curl -X DELETE localhost.localstack.cloud:4566/_aws/ses?id=dqxhhgoutkmylpbc-ffuqlkjs-ljld-fckp-hcph-wcsrkmxhhldk-pvadjc -
Filesystem: All messages are saved to the state directory (see filesystem layout). The files are saved as JSON in the
ses/subdirectory and named by the message ID.
SMTP Integration
Section titled “SMTP Integration”LocalStack for AWS supports sending emails via an SMTP server. To enable this, set the connections parameters and access credentials for the server in the configuration. Refer to the Configuration guide for details.
Resource Browser
Section titled “Resource Browser”The LocalStack Console provides a resource browser for managing email identities and introspecing sent emails.

The Resource Browser allows you to perform following actions:
- Create Email Identity: Create an email identity by clicking Create Identity and specifying the email address.
- View Sent Emails: View all sent emails from an email identity by clicking the email address. You can the view the details of a sent email by selecting them from the list.
- Send Emails: On selecting an email identity, click Send Message and specify destination fields (To, CC and BCC addresses) and the body (Plaintext, HTML) to send an email.
Tagging email identities
Section titled “Tagging email identities”LocalStack supports the SESv2 TagResource, UntagResource, and ListTagsForResource operations for email identities.
This allows infrastructure as code tools such as Terraform to manage the aws_sesv2_email_identity resource, which reads tags on every refresh.
You can also set tags when you create an identity with CreateEmailIdentity.
lstk aws sesv2 create-email-identity --email-identity hello@example.com
lstk aws sesv2 tag-resource \ --resource-arn arn:aws:ses:us-east-1:000000000000:identity/hello@example.com \ --tags Key=team,Value=platform
lstk aws sesv2 list-tags-for-resource \ --resource-arn arn:aws:ses:us-east-1:000000000000:identity/hello@example.com{ "Tags": [ { "Key": "team", "Value": "platform" } ]}Current Limitations
Section titled “Current Limitations”- It is currently not possible to receive emails via SES in LocalStack.
- All operations related to Receipt Rules are mocked.
- Deleting an identity with the SESv1
DeleteIdentityoperation does not remove its tags. A new identity with the same name inherits them. Use the SESv2DeleteEmailIdentityoperation instead.
API Coverage (SESv1)
Section titled “API Coverage (SESv1)”46 of 71 operations implemented
Available from Hobby; some service variants start at Base. Licensing details
Find an API
Search the full operation list, then sort the table to compare current support.
Loading operations…
| Verified on Kubernetes | ||
|---|---|---|
| Loading operations… | ||
Complete static API list All 71 operations and their current support status
| Operation | Status |
|---|---|
| CloneReceiptRuleSet | Implemented |
| CreateConfigurationSet | Implemented |
| CreateConfigurationSetEventDestination | Implemented |
| CreateConfigurationSetTrackingOptions | Not implemented |
| CreateCustomVerificationEmailTemplate | Not implemented |
| CreateReceiptFilter | Not implemented |
| CreateReceiptRule | Implemented |
| CreateReceiptRuleSet | Implemented |
| CreateTemplate | Implemented |
| DeleteConfigurationSet | Implemented |
| DeleteConfigurationSetEventDestination | Implemented |
| DeleteConfigurationSetTrackingOptions | Not implemented |
| DeleteCustomVerificationEmailTemplate | Not implemented |
| DeleteIdentity | Implemented |
| DeleteIdentityPolicy | Not implemented |
| DeleteReceiptFilter | Not implemented |
| DeleteReceiptRule | Implemented |
| DeleteReceiptRuleSet | Implemented |
| DeleteTemplate | Implemented |
| DeleteVerifiedEmailAddress | Not implemented |
| DescribeActiveReceiptRuleSet | Implemented |
| DescribeConfigurationSet | Implemented |
| DescribeReceiptRule | Implemented |
| DescribeReceiptRuleSet | Implemented |
| GetAccountSendingEnabled | Not implemented |
| GetCustomVerificationEmailTemplate | Not implemented |
| GetIdentityDkimAttributes | Implemented |
| GetIdentityMailFromDomainAttributes | Implemented |
| GetIdentityNotificationAttributes | Implemented |
| GetIdentityPolicies | Not implemented |
| GetIdentityVerificationAttributes | Implemented |
| GetSendQuota | Implemented |
| GetSendStatistics | Implemented |
| GetTemplate | Implemented |
| ListConfigurationSets | Implemented |
| ListCustomVerificationEmailTemplates | Not implemented |
| ListIdentities | Implemented |
| ListIdentityPolicies | Not implemented |
| ListReceiptFilters | Not implemented |
| ListReceiptRuleSets | Implemented |
| ListTemplates | Implemented |
| ListVerifiedEmailAddresses | Implemented |
| PutConfigurationSetDeliveryOptions | Not implemented |
| PutIdentityPolicy | Not implemented |
| ReorderReceiptRuleSet | Not implemented |
| SendBounce | Not implemented |
| SendBulkTemplatedEmail | Implemented |
| SendCustomVerificationEmail | Not implemented |
| SendEmail | Implemented |
| SendRawEmail | Implemented |
| SendTemplatedEmail | Implemented |
| SetActiveReceiptRuleSet | Implemented |
| SetIdentityDkimEnabled | Not implemented |
| SetIdentityFeedbackForwardingEnabled | Implemented |
| SetIdentityHeadersInNotificationsEnabled | Implemented |
| SetIdentityMailFromDomain | Implemented |
| SetIdentityNotificationTopic | Implemented |
| SetReceiptRulePosition | Implemented |
| TestRenderTemplate | Implemented |
| UpdateAccountSendingEnabled | Not implemented |
| UpdateConfigurationSetEventDestination | Not implemented |
| UpdateConfigurationSetReputationMetricsEnabled | Implemented |
| UpdateConfigurationSetSendingEnabled | Not implemented |
| UpdateConfigurationSetTrackingOptions | Not implemented |
| UpdateCustomVerificationEmailTemplate | Not implemented |
| UpdateReceiptRule | Implemented |
| UpdateTemplate | Implemented |
| VerifyDomainDkim | Implemented |
| VerifyDomainIdentity | Implemented |
| VerifyEmailAddress | Implemented |
| VerifyEmailIdentity | Implemented |
API Coverage (SESv2)
Section titled “API Coverage (SESv2)”17 of 116 operations implemented
Available from Hobby; some service variants start at Base. Licensing details
Find an API
Search the full operation list, then sort the table to compare current support.
Loading operations…
| Verified on Kubernetes | ||
|---|---|---|
| Loading operations… | ||
Complete static API list All 116 operations and their current support status
| Operation | Status |
|---|---|
| AssociateEmailIdentityCertificate | Not implemented |
| BatchGetMetricData | Not implemented |
| CancelExportJob | Not implemented |
| CreateConfigurationSet | Not implemented |
| CreateConfigurationSetEventDestination | Not implemented |
| CreateContact | Not implemented |
| CreateContactList | Not implemented |
| CreateCustomVerificationEmailTemplate | Not implemented |
| CreateDedicatedIpPool | Not implemented |
| CreateDeliverabilityTestReport | Not implemented |
| CreateEmailIdentity | Implemented |
| CreateEmailIdentityPolicy | Not implemented |
| CreateEmailTemplate | Implemented |
| CreateExportJob | Not implemented |
| CreateImportJob | Not implemented |
| CreateMultiRegionEndpoint | Not implemented |
| CreateTenant | Not implemented |
| CreateTenantResourceAssociation | Not implemented |
| DeleteConfigurationSet | Not implemented |
| DeleteConfigurationSetEventDestination | Not implemented |
| DeleteContact | Not implemented |
| DeleteContactList | Not implemented |
| DeleteCustomVerificationEmailTemplate | Not implemented |
| DeleteDedicatedIpPool | Not implemented |
| DeleteEmailIdentity | Implemented |
| DeleteEmailIdentityPolicy | Not implemented |
| DeleteEmailTemplate | Implemented |
| DeleteMultiRegionEndpoint | Not implemented |
| DeleteSuppressedDestination | Not implemented |
| DeleteTenant | Not implemented |
| DeleteTenantResourceAssociation | Not implemented |
| DisassociateEmailIdentityCertificate | Not implemented |
| GetAccount | Not implemented |
| GetBlacklistReports | Not implemented |
| GetConfigurationSet | Not implemented |
| GetConfigurationSetEventDestinations | Not implemented |
| GetContact | Not implemented |
| GetContactList | Not implemented |
| GetCustomVerificationEmailTemplate | Not implemented |
| GetDedicatedIp | Not implemented |
| GetDedicatedIpPool | Not implemented |
| GetDedicatedIps | Not implemented |
| GetDeliverabilityDashboardOptions | Not implemented |
| GetDeliverabilityTestReport | Not implemented |
| GetDomainDeliverabilityCampaign | Not implemented |
| GetDomainStatisticsReport | Not implemented |
| GetEmailAddressInsights | Not implemented |
| GetEmailIdentity | Implemented |
| GetEmailIdentityPolicies | Not implemented |
| GetEmailTemplate | Not implemented |
| GetExportJob | Not implemented |
| GetImportJob | Not implemented |
| GetMessageInsights | Not implemented |
| GetMultiRegionEndpoint | Not implemented |
| GetReputationEntity | Not implemented |
| GetSuppressedDestination | Not implemented |
| GetTenant | Not implemented |
| ListConfigurationSets | Not implemented |
| ListContactLists | Not implemented |
| ListContacts | Not implemented |
| ListCustomVerificationEmailTemplates | Not implemented |
| ListDedicatedIpPools | Not implemented |
| ListDeliverabilityTestReports | Not implemented |
| ListDomainDeliverabilityCampaigns | Not implemented |
| ListEmailIdentities | Implemented |
| ListEmailIdentityCertificates | Not implemented |
| ListEmailTemplates | Implemented |
| ListExportJobs | Not implemented |
| ListImportJobs | Not implemented |
| ListMultiRegionEndpoints | Not implemented |
| ListRecommendations | Not implemented |
| ListReputationEntities | Not implemented |
| ListResourceTenants | Not implemented |
| ListSuppressedDestinations | Not implemented |
| ListTagsForResource | Implemented |
| ListTenantResources | Not implemented |
| ListTenants | Not implemented |
| PutAccountDedicatedIpWarmupAttributes | Not implemented |
| PutAccountDetails | Not implemented |
| PutAccountPricingAttributes | Not implemented |
| PutAccountSendingAttributes | Not implemented |
| PutAccountSuppressionAttributes | Not implemented |
| PutAccountVdmAttributes | Not implemented |
| PutConfigurationSetArchivingOptions | Not implemented |
| PutConfigurationSetDeliveryOptions | Not implemented |
| PutConfigurationSetReputationOptions | Not implemented |
| PutConfigurationSetSendingOptions | Not implemented |
| PutConfigurationSetSuppressionOptions | Not implemented |
| PutConfigurationSetTrackingOptions | Not implemented |
| PutConfigurationSetVdmOptions | Not implemented |
| PutDedicatedIpInPool | Not implemented |
| PutDedicatedIpPoolScalingAttributes | Not implemented |
| PutDedicatedIpWarmupAttributes | Not implemented |
| PutDeliverabilityDashboardOption | Not implemented |
| PutEmailIdentityConfigurationSetAttributes | Implemented |
| PutEmailIdentityDkimAttributes | Implemented |
| PutEmailIdentityDkimSigningAttributes | Implemented |
| PutEmailIdentityFeedbackAttributes | Implemented |
| PutEmailIdentityMailFromAttributes | Implemented |
| PutSuppressedDestination | Not implemented |
| PutTenantSuppressionAttributes | Not implemented |
| SendBulkEmail | Implemented |
| SendCustomVerificationEmail | Not implemented |
| SendEmail | Implemented |
| TagResource | Implemented |
| TestRenderEmailTemplate | Not implemented |
| UntagResource | Implemented |
| UpdateConfigurationSet | Not implemented |
| UpdateConfigurationSetEventDestination | Not implemented |
| UpdateContact | Not implemented |
| UpdateContactList | Not implemented |
| UpdateCustomVerificationEmailTemplate | Not implemented |
| UpdateEmailIdentityPolicy | Not implemented |
| UpdateEmailTemplate | Not implemented |
| UpdateReputationEntityCustomerManagedStatus | Not implemented |
| UpdateReputationEntityPolicy | Not implemented |