AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Composes an email message and immediately queues it for sending. In order to send
email using the
SendEmail operation, your message must meet the following
The message must be sent from a verified email address or domain. If you attempt to send email using a non-verified address or domain, the operation will result in an "Email address not verified" error.
If your account is still in the Amazon SES sandbox, you may only send to verified addresses or domains, or to email addresses associated with the Amazon SES Mailbox Simulator. For more information, see Verifying Email Addresses and Domains in the Amazon SES Developer Guide.
The maximum message size is 10 MB.
The message must include at least one recipient email address. The recipient address can be a To: address, a CC: address, or a BCC: address. If a recipient email address is invalid (that is, it is not in the format UserName@[SubDomain.]Domain.TopLevelDomain), the entire message will be rejected, even if the message contains other recipients that are valid.
The message may not include more than 50 recipients, across the To:, CC: and BCC:
fields. If you need to send an email message to a larger audience, you can divide
your recipient list into groups of 50 or fewer, and then call the
operation several times to send the message to each group.
For every message that you send, the total number of recipients (including each recipient in the To:, CC: and BCC: fields) is counted against the maximum number of emails you can send in a 24-hour period (your sending quota). For more information about sending quotas in Amazon SES, see Managing Your Amazon SES Sending Limits in the Amazon SES Developer Guide.
This is an asynchronous operation using the standard naming convention for .NET 4.5 or higher. For .NET 3.5 the operation is implemented as a pair of methods using the standard naming convention of BeginSendEmail and EndSendEmail.
public abstract Task<SendEmailResponse> SendEmailAsync( SendEmailRequest request, CancellationToken cancellationToken )
Container for the necessary parameters to execute the SendEmail service method.
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
|AccountSendingPausedException||Indicates that email sending is disabled for your entire Amazon SES account. You can enable or disable email sending for your Amazon SES account using UpdateAccountSendingEnabled.|
|ConfigurationSetDoesNotExistException||Indicates that the configuration set does not exist.|
|ConfigurationSetSendingPausedException||Indicates that email sending is disabled for the configuration set. You can enable or disable email sending for a configuration set using UpdateConfigurationSetSendingEnabled.|
|MailFromDomainNotVerifiedException||Indicates that the message could not be sent because Amazon SES could not read the MX record required to use the specified MAIL FROM domain. For information about editing the custom MAIL FROM domain settings for an identity, see the Amazon SES Developer Guide.|
|MessageRejectedException||Indicates that the action failed, and the message could not be sent. Check the error stack for more information about what caused the error.|
.NET Core App:
Supported in: 3.1
Supported in: 2.0, 1.3
Supported in: 4.5