AptlyStar

AWS SES

Send emails and manage templates with AWS Simple Email Service

使用说明

Integrate AWS SES v2 into the workflow. Send simple, templated, and bulk emails. Manage email templates and retrieve account sending quota and verified identity information.

工具

ses_send_email

Send an email via AWS SES using simple or HTML content

输入

参数类型必填描述
regionstring是AWS region (e.g., us-east-1)
accessKeyIdstring是AWS access key ID
secretAccessKeystring是AWS secret access key
fromAddressstring是Verified sender email address
toAddressesstring是Comma-separated list of recipient email addresses
subjectstring是Email subject line
bodyTextstring否Plain text email body
bodyHtmlstring否HTML email body
ccAddressesstring否Comma-separated list of CC email addresses
bccAddressesstring否Comma-separated list of BCC email addresses
replyToAddressesstring否Comma-separated list of reply-to email addresses
configurationSetNamestring否SES configuration set name for tracking

输出

参数类型描述
messageIdstringSES message ID for the sent email

ses_send_templated_email

Send an email using an SES email template with dynamic template data

输入

参数类型必填描述
regionstring是AWS region (e.g., us-east-1)
accessKeyIdstring是AWS access key ID
secretAccessKeystring是AWS secret access key
fromAddressstring是Verified sender email address
toAddressesstring是Comma-separated list of recipient email addresses
templateNamestring是Name of the SES email template to use
templateDatastring是JSON string of key-value pairs for template variable substitution
ccAddressesstring否Comma-separated list of CC email addresses
bccAddressesstring否Comma-separated list of BCC email addresses
configurationSetNamestring否SES configuration set name for tracking

输出

参数类型描述
messageIdstringSES message ID for the sent email

ses_send_bulk_email

Send emails to multiple recipients using an SES template with per-recipient data

输入

参数类型必填描述
regionstring是AWS region (e.g., us-east-1)
accessKeyIdstring是AWS access key ID
secretAccessKeystring是AWS secret access key
fromAddressstring是Verified sender email address
templateNamestring是Name of the SES email template to use
destinationsstring是JSON array of destination objects with toAddresses (string[]) and optional templateData (JSON string); falls back to defaultTemplateData when omitted
defaultTemplateDatastring否Default JSON template data used when a destination does not specify its own
configurationSetNamestring否SES configuration set name for tracking

输出

参数类型描述
resultsarrayPer-destination send results with status and messageId
successCountnumberNumber of successfully sent emails
failureCountnumberNumber of failed email sends

ses_list_identities

List all verified email identities (email addresses and domains) in your SES account

输入

参数类型必填描述
regionstring是AWS region (e.g., us-east-1)
accessKeyIdstring是AWS access key ID
secretAccessKeystring是AWS secret access key
pageSizenumber否Maximum number of identities to return (1-1000)
nextTokenstring否Pagination token from a previous list response

输出

参数类型描述
identitiesarrayList of email identities with name, type, sending status, and verification status
nextTokenstringPagination token for the next page of results
countnumberNumber of identities returned

ses_get_account

Get SES account sending quota and status information

输入

参数类型必填描述
regionstring是AWS region (e.g., us-east-1)
accessKeyIdstring是AWS access key ID
secretAccessKeystring是AWS secret access key

输出

参数类型描述
sendingEnabledbooleanWhether email sending is enabled for the account
max24HourSendnumberMaximum emails allowed per 24-hour period
maxSendRatenumberMaximum emails allowed per second
sentLast24HoursnumberNumber of emails sent in the last 24 hours

ses_create_template

Create a new SES email template for use with templated email sending

输入

参数类型必填描述
regionstring是AWS region (e.g., us-east-1)
accessKeyIdstring是AWS access key ID
secretAccessKeystring是AWS secret access key
templateNamestring是Unique name for the email template
subjectPartstring是Subject line template (supports {{variable}} substitution)
textPartstring否Plain text version of the template body
htmlPartstring否HTML version of the template body

输出

参数类型描述
messagestringConfirmation message for the created template

ses_get_template

Retrieve the content and details of an SES email template

输入

参数类型必填描述
regionstring是AWS region (e.g., us-east-1)
accessKeyIdstring是AWS access key ID
secretAccessKeystring是AWS secret access key
templateNamestring是Name of the template to retrieve

输出

参数类型描述
templateNamestringName of the template
subjectPartstringSubject line of the template
textPartstringPlain text body of the template
htmlPartstringHTML body of the template

ses_list_templates

List all SES email templates in your account

输入

参数类型必填描述
regionstring是AWS region (e.g., us-east-1)
accessKeyIdstring是AWS access key ID
secretAccessKeystring是AWS secret access key
pageSizenumber否Maximum number of templates to return
nextTokenstring否Pagination token from a previous list response

输出

参数类型描述
templatesarrayList of email templates with name and creation timestamp
nextTokenstringPagination token for the next page of results
countnumberNumber of templates returned

ses_delete_template

Delete an existing SES email template

输入

参数类型必填描述
regionstring是AWS region (e.g., us-east-1)
accessKeyIdstring是AWS access key ID
secretAccessKeystring是AWS secret access key
templateNamestring是Name of the template to delete

输出

参数类型描述
messagestringConfirmation message for the deleted template

On this page