Module Smaws_Client_SES.SendRawEmail

Composes an email message and immediately queues it for sending.

This operation is more flexible than the SendEmail operation. When you use the SendRawEmail operation, you can specify the headers of the message as well as its content. This flexibility is useful, for example, when you need to send a multipart MIME email (such a message that contains both a text and an HTML version). You can also use this operation to send messages that include attachments.

The SendRawEmail operation has the following requirements:

Additionally, keep the following considerations in mind when using the SendRawEmail operation:

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 ] -> string
val request : 'http_type Smaws_Lib.Context.t -> Types.send_raw_email_request -> (Types.send_raw_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 ]) Stdlib.result
val request_with_metadata : 'http_type Smaws_Lib.Context.t -> Types.send_raw_email_request -> (Types.send_raw_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 ] * Smaws_Lib.Response.metadata) Stdlib.result