aws-ses
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "aws-ses" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-6072a231c6b17002c07ba1cc899f9e600920d8121f3dce6fed49ad81ca6c5655. Verify the upstream source and version against https://github.com/TerminalSkills/skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Amazon SES expert: Explains how to use Amazon SES to send transactional and marketing email, including verifying domains and identities, creating reusable email templates, configuring receipt rules for inbound mail, and handling bounces and complaints via SNS notifications to manage key sending and receiving operations.
Introduction source: third_party · TerminalSkills · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Amazon Simple Email Service (SES) is a cost-effective email platform for sending transactional, marketing, and notification emails. It also receives incoming email and integrates with S3, SNS, and Lambda for processing.
- Testing
- Not tested
Browse files
Frontmatter
name: aws-ses
description: |
Send transactional and marketing emails with Amazon SES. Verify domains and
identities, create reusable email templates, configure receipt rules for
incoming mail, and handle bounces and complaints with SNS notifications.
license: Apache-2.0
compatibility: 'aws-cli, boto3, sdk'
metadata:
author: terminal-skills
version: 1.0.0
category: devops
tags:
- aws
- ses
- email
- notificationsAWS SES
Amazon Simple Email Service (SES) is a cost-effective email platform for sending transactional, marketing, and notification emails. It also receives incoming email and integrates with S3, SNS, and Lambda for processing.
Core Concepts
- Verified Identity — domain or email address authorized to send
- Configuration Set — tracking settings for opens, clicks, bounces
- Template — reusable email template with variable substitution
- Receipt Rule — rules for processing incoming emails
- Suppression List — addresses that bounced or complained
- Sending Quota — rate limits based on account reputation
Domain Verification
# Verify a domain (creates DKIM records)
aws sesv2 create-email-identity --email-identity example.com
# Get DKIM tokens to add as DNS CNAME records
aws sesv2 get-email-identity --email-identity example.com \
--query 'DkimAttributes.Tokens'
# Verify a single email address (for testing)
aws sesv2 create-email-identity --email-identity test@example.com
# List verified identities
aws sesv2 list-email-identities --query 'EmailIdentities[].IdentityName'
Sending Email
# Send a simple email
aws sesv2 send-email \
--from-email-address "noreply@example.com" \
--destination '{"ToAddresses":["user@example.com"]}' \
--content '{
"Simple": {
"Subject": {"Data": "Order Confirmation #12345"},
"Body": {
"Html": {"Data": "<h1>Thank you!</h1><p>Your order has been confirmed.</p>"},
"Text": {"Data": "Thank you! Your order has been confirmed."}
}
}
}' \
--configuration-set-name prod-tracking
# Send email with boto3
import boto3
ses = boto3.client('sesv2')
ses.send_email(
FromEmailAddress='noreply@example.com',
Destination={
'ToAddresses': ['user@example.com'],
'BccAddresses': ['archive@example.com']
},
Content={
'Simple': {
'Subject': {'Data': 'Your Invoice'},
'Body': {
'Html': {'Data': '<h1>Invoice #INV-001</h1><p>Amount: $99.99</p>'},
'Text': {'Data': 'Invoice #INV-001\nAmount: $99.99'}
}
}
},
ConfigurationSetName='prod-tracking'
)
Email Templates
# Create a template
aws sesv2 create-email-template \
--template-name order-confirmation \
--template-content '{
"Subject": "Order Confirmation #{{orderNumber}}",
"Html": "<h1>Hi {{customerName}},</h1><p>Your order #{{orderNumber}} for {{itemName}} has been confirmed.</p><p>Total: ${{total}}</p>",
"Text": "Hi {{customerName}},\nYour order #{{orderNumber}} for {{itemName}} has been confirmed.\nTotal: ${{total}}"
}'
# Send using a template
aws sesv2 send-email \
--from-email-address "orders@example.com" \
--destination '{"ToAddresses":["user@example.com"]}' \
--content '{
"Template": {
"TemplateName": "order-confirmation",
"TemplateData": "{\"orderNumber\":\"12345\",\"customerName\":\"Alice\",\"itemName\":\"Widget Pro\",\"total\":\"99.99\"}"
}
}'
# Bulk templated sending with boto3
import boto3
ses = boto3.client('sesv2')
ses.send_bulk_email(
FromEmailAddress='marketing@example.com',
DefaultContent={
'Template': {
'TemplateName': 'weekly-newsletter',
'TemplateData': '{"week":"Jan 15"}'
}
},
BulkEmailEntries=[
{
'Destination': {'ToAddresses': ['alice@example.com']},
'ReplacementEmailContent': {
'ReplacementTemplate': {
'ReplacementTemplateData': '{"name":"Alice","recommendations":"Widget A, Widget B"}'
}
}
},
{
'Destination': {'ToAddresses': ['bob@example.com']},
'ReplacementEmailContent': {
'ReplacementTemplate': {
'ReplacementTemplateData': '{"name":"Bob","recommendations":"Gadget X, Gadget Y"}'
}
}
}
],
ConfigurationSetName='marketing-tracking'
)
Bounce and Complaint Handling
# Create a configuration set with event destinations
aws sesv2 create-configuration-set --configuration-set-name prod-tracking
# Add SNS destination for bounces and complaints
aws sesv2 create-configuration-set-event-destination \
--configuration-set-name prod-tracking \
--event-destination-name bounce-handler \
--event-destination '{
"Enabled": true,
"MatchingEventTypes": ["BOUNCE", "COMPLAINT"],
"SnsDestination": {
"TopicArn": "arn:aws:sns:us-east-1:123456789:ses-bounces"
}
}'
# Lambda handler for bounce/complaint SNS notifications
import json
def handler(event, context):
for record in event['Records']:
message = json.loads(record['Sns']['Message'])
notification_type = message['notificationType']
if notification_type == 'Bounce':
bounce = message['bounce']
for recipient in bounce['bouncedRecipients']:
email = recipient['emailAddress']
bounce_type = bounce['bounceType'] # Permanent or Transient
if bounce_type == 'Permanent':
suppress_email(email)
elif notification_type == 'Complaint':
complaint = message['complaint']
for recipient in complaint['complainedRecipients']:
unsubscribe_email(recipient['emailAddress'])
Receiving Email
# Create a receipt rule set
aws ses create-receipt-rule-set --rule-set-name inbound-rules
aws ses set-active-receipt-rule-set --rule-set-name inbound-rules
# Create rule to store incoming email in S3 and trigger Lambda
aws ses create-receipt-rule \
--rule-set-name inbound-rules \
--rule '{
"Name": "process-support-emails",
"Enabled": true,
"Recipients": ["support@example.com"],
"Actions": [
{"S3Action": {"BucketName": "incoming-email", "ObjectKeyPrefix": "support/"}},
{"LambdaAction": {"FunctionArn": "arn:aws:lambda:us-east-1:123456789:function:process-support-email"}}
]
}'
Monitoring
# Check sending quota and statistics
aws sesv2 get-account --query '{SendQuota:SendQuota,SendingEnabled:SendingEnabled}'
# Get sending statistics
aws ses get-send-statistics --query 'SendDataPoints[-5:]'
Best Practices
- Always verify domains with DKIM for better deliverability
- Set up bounce and complaint handling before sending at scale
- Use configuration sets to track delivery metrics
- Send from a subdomain (mail.example.com) to protect main domain reputation
- Include unsubscribe headers in marketing emails (required by law)
- Warm up new accounts gradually — start with small volumes
- Use the suppression list API to respect bounces and complaints
- Test with the SES mailbox simulator before going to production
Current listing version
1.0.0
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供完整的 AWS SES 邮件服务操作指南,涵盖身份验证、发送、模板、退信处理等核心功能
- 适用于 DevOps、开发者、运维人员等广泛用户群体,解决实际生产环境需求
Highlights
- description 明确描述使用 Amazon SES 发送邮件及相关功能,触发词精准覆盖核心能力
Areas to improve
-
缺少 When to Use 章节 Reported severity: Minor
文档未明确说明适用场景和使用时机
Recommendation: 建议补充 When to Use 章节,说明何时使用此 Skill 以及典型使用场景
Highlights
- 文档结构清晰,分多个功能章节,每部分均有具体命令和代码示例
- frontmatter 完整,包含名称、描述、许可证、兼容性等信息
Highlights
- 所有命令和代码示例均基于官方 AWS CLI 和 boto3 SDK,参数正确
- 包含异常处理机制(如退信/投诉 Lambda 处理),覆盖主要使用场景
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Cloud changes and possible charges
Preview changes and verify account, region, permissions and costs. Confirm creation, deployment or deletion separately.
Mentioned in main document · lines 37, 48, 104, 166, 169
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.