Module Smaws_Client_SES.SendTemplatedEmail

Composes 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:

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 ] -> string
val 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.result
val 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