AWS SDK Version 3 for .NET
API Reference

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 to multiple destinations. The message body is created using an email template.

To send email using this operation, your call must meet the following requirements:

Note:

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 BeginSendBulkTemplatedEmail and EndSendBulkTemplatedEmail.

Namespace: Amazon.SimpleEmail
Assembly: AWSSDK.SimpleEmail.dll
Version: 3.x.y.z

Syntax

C#
public abstract Task<SendBulkTemplatedEmailResponse> SendBulkTemplatedEmailAsync(
         SendBulkTemplatedEmailRequest request,
         CancellationToken cancellationToken
)

Parameters

request
Type: Amazon.SimpleEmail.Model.SendBulkTemplatedEmailRequest

Container for the necessary parameters to execute the SendBulkTemplatedEmail service method.

cancellationToken
Type: System.Threading.CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Return Value


The response from the SendBulkTemplatedEmail service method, as returned by SimpleEmailService.

Exceptions

ExceptionCondition
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.
TemplateDoesNotExistException Indicates that the Template object you specified does not exist in your Amazon SES account.

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5 and newer

See Also