Smaws_Client_SES.SendTemplatedEmailComposes an email message using an email template and immediately queues it for sending.
To send email using this operation, your call must meet the following requirements:
CreateTemplate operation.SendTemplatedEmail operation may only include one Destination parameter. A destination is a set of recipients that receives the same version of the email. The Destination parameter can include up to 50 recipients, across the To:, CC: and BCC: fields.Destination parameter 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 is rejected, even if the message contains other recipients that are valid.If your call to the SendTemplatedEmail operation includes all of the required parameters, Amazon SES accepts it and returns a Message ID. However, if Amazon SES can't render the email because the template contains errors, it doesn't send the email. Additionally, because it already accepted the message, Amazon SES doesn't return a message stating that it was unable to send the email.
For these reasons, we highly recommend that you set up Amazon SES to send you notifications when Rendering Failure events occur. For more information, see Sending Personalized Email Using the Amazon SES API in the Amazon Simple Email Service Developer Guide.
val error_to_string :
[ Smaws_Lib.Protocols.AwsQuery.error
| `AccountSendingPausedException of Types.account_sending_paused_exception
| `ConfigurationSetDoesNotExistException of
Types.configuration_set_does_not_exist_exception
| `ConfigurationSetSendingPausedException of
Types.configuration_set_sending_paused_exception
| `MailFromDomainNotVerifiedException of
Types.mail_from_domain_not_verified_exception
| `MessageRejected of Types.message_rejected
| `TemplateDoesNotExistException of Types.template_does_not_exist_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.send_templated_email_request ->
(Types.send_templated_email_response,
[> Smaws_Lib.Protocols.AwsQuery.error
| `AccountSendingPausedException of Types.account_sending_paused_exception
| `ConfigurationSetDoesNotExistException of
Types.configuration_set_does_not_exist_exception
| `ConfigurationSetSendingPausedException of
Types.configuration_set_sending_paused_exception
| `MailFromDomainNotVerifiedException of
Types.mail_from_domain_not_verified_exception
| `MessageRejected of Types.message_rejected
| `TemplateDoesNotExistException of Types.template_does_not_exist_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.send_templated_email_request ->
(Types.send_templated_email_response Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsQuery.error
| `AccountSendingPausedException of Types.account_sending_paused_exception
| `ConfigurationSetDoesNotExistException of
Types.configuration_set_does_not_exist_exception
| `ConfigurationSetSendingPausedException of
Types.configuration_set_sending_paused_exception
| `MailFromDomainNotVerifiedException of
Types.mail_from_domain_not_verified_exception
| `MessageRejected of Types.message_rejected
| `TemplateDoesNotExistException of Types.template_does_not_exist_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result