Smaws_Client_SES.SendRawEmailComposes 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:
SendRawEmail operation, Amazon SES automatically applies its own Message-ID and Date headers; if you passed these headers when creating the message, they are overwritten by the values that Amazon SES provides.If you are using sending authorization to send on behalf of another user, SendRawEmail enables you to specify the cross-account identity for the email's Source, From, and Return-Path parameters in one of two ways: you can pass optional parameters SourceArn, FromArn, and/or ReturnPathArn, or you can include the following X-headers in the header of your raw email:
X-SES-SOURCE-ARNX-SES-FROM-ARNX-SES-RETURN-PATH-ARNDon't include these X-headers in the DKIM signature. Amazon SES removes these before it sends the email.
If you only specify the SourceIdentityArn parameter, Amazon SES sets the From and Return-Path addresses to the same identity that you specified.
For more information about sending authorization, see the Using Sending Authorization with Amazon SES in the Amazon SES 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 ] ->
stringval 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.resultval 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