1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`SendEmail`](crate::operation::send_email::builders::SendEmailFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`source(impl Into<String>)`](crate::operation::send_email::builders::SendEmailFluentBuilder::source) / [`set_source(Option<String>)`](crate::operation::send_email::builders::SendEmailFluentBuilder::set_source):<br>required: **true**<br><p>The email address that is sending the email. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES. For information about verifying identities, see the <a href="https://docs.aws.amazon.com/ses/latest/dg/creating-identities.html">Amazon SES Developer Guide</a>.</p> <p>If you are sending on behalf of another user and have been permitted to do so by a sending authorization policy, then you must also specify the <code>SourceArn</code> parameter. For more information about sending authorization, see the <a href="https://docs.aws.amazon.com/ses/latest/dg/sending-authorization.html">Amazon SES Developer Guide</a>.</p><note>  <p>Amazon SES does not support the SMTPUTF8 extension, as described in <a href="https://tools.ietf.org/html/rfc6531">RFC6531</a>. For this reason, the email address string must be 7-bit ASCII. If you want to send to or from email addresses that contain Unicode characters in the domain part of an address, you must encode the domain using Punycode. Punycode is not permitted in the local part of the email address (the part before the @ sign) nor in the "friendly from" name. If you want to use Unicode characters in the "friendly from" name, you must encode the "friendly from" name using MIME encoded-word syntax, as described in <a href="https://docs.aws.amazon.com/ses/latest/dg/send-email-raw.html">Sending raw email using the Amazon SES API</a>. For more information about Punycode, see <a href="http://tools.ietf.org/html/rfc3492">RFC 3492</a>.</p> </note><br>
    ///   - [`destination(Destination)`](crate::operation::send_email::builders::SendEmailFluentBuilder::destination) / [`set_destination(Option<Destination>)`](crate::operation::send_email::builders::SendEmailFluentBuilder::set_destination):<br>required: **true**<br><p>The destination for this email, composed of To:, CC:, and BCC: fields.</p><br>
    ///   - [`message(Message)`](crate::operation::send_email::builders::SendEmailFluentBuilder::message) / [`set_message(Option<Message>)`](crate::operation::send_email::builders::SendEmailFluentBuilder::set_message):<br>required: **true**<br><p>The message to be sent.</p><br>
    ///   - [`reply_to_addresses(impl Into<String>)`](crate::operation::send_email::builders::SendEmailFluentBuilder::reply_to_addresses) / [`set_reply_to_addresses(Option<Vec::<String>>)`](crate::operation::send_email::builders::SendEmailFluentBuilder::set_reply_to_addresses):<br>required: **false**<br><p>The reply-to email address(es) for the message. If the recipient replies to the message, each reply-to address receives the reply.</p><br>
    ///   - [`return_path(impl Into<String>)`](crate::operation::send_email::builders::SendEmailFluentBuilder::return_path) / [`set_return_path(Option<String>)`](crate::operation::send_email::builders::SendEmailFluentBuilder::set_return_path):<br>required: **false**<br><p>The email address that bounces and complaints are forwarded to when feedback forwarding is enabled. If the message cannot be delivered to the recipient, then an error message is returned from the recipient's ISP; this message is forwarded to the email address specified by the <code>ReturnPath</code> parameter. The <code>ReturnPath</code> parameter is never overwritten. This email address must be either individually verified with Amazon SES, or from a domain that has been verified with Amazon SES.</p><br>
    ///   - [`source_arn(impl Into<String>)`](crate::operation::send_email::builders::SendEmailFluentBuilder::source_arn) / [`set_source_arn(Option<String>)`](crate::operation::send_email::builders::SendEmailFluentBuilder::set_source_arn):<br>required: **false**<br><p>This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to send for the email address specified in the <code>Source</code> parameter.</p> <p>For example, if the owner of <code>example.com</code> (which has ARN <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>) attaches a policy to it that authorizes you to send from <code>user@example.com</code>, then you would specify the <code>SourceArn</code> to be <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>, and the <code>Source</code> to be <code>user@example.com</code>.</p> <p>For more information about sending authorization, see the <a href="https://docs.aws.amazon.com/ses/latest/dg/sending-authorization.html">Amazon SES Developer Guide</a>.</p><br>
    ///   - [`return_path_arn(impl Into<String>)`](crate::operation::send_email::builders::SendEmailFluentBuilder::return_path_arn) / [`set_return_path_arn(Option<String>)`](crate::operation::send_email::builders::SendEmailFluentBuilder::set_return_path_arn):<br>required: **false**<br><p>This parameter is used only for sending authorization. It is the ARN of the identity that is associated with the sending authorization policy that permits you to use the email address specified in the <code>ReturnPath</code> parameter.</p> <p>For example, if the owner of <code>example.com</code> (which has ARN <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>) attaches a policy to it that authorizes you to use <code>feedback@example.com</code>, then you would specify the <code>ReturnPathArn</code> to be <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>, and the <code>ReturnPath</code> to be <code>feedback@example.com</code>.</p> <p>For more information about sending authorization, see the <a href="https://docs.aws.amazon.com/ses/latest/dg/sending-authorization.html">Amazon SES Developer Guide</a>.</p><br>
    ///   - [`tags(MessageTag)`](crate::operation::send_email::builders::SendEmailFluentBuilder::tags) / [`set_tags(Option<Vec::<MessageTag>>)`](crate::operation::send_email::builders::SendEmailFluentBuilder::set_tags):<br>required: **false**<br><p>A list of tags, in the form of name/value pairs, to apply to an email that you send using <code>SendEmail</code>. Tags correspond to characteristics of the email that you define, so that you can publish email sending events.</p><br>
    ///   - [`configuration_set_name(impl Into<String>)`](crate::operation::send_email::builders::SendEmailFluentBuilder::configuration_set_name) / [`set_configuration_set_name(Option<String>)`](crate::operation::send_email::builders::SendEmailFluentBuilder::set_configuration_set_name):<br>required: **false**<br><p>The name of the configuration set to use when you send an email using <code>SendEmail</code>.</p><br>
    /// - On success, responds with [`SendEmailOutput`](crate::operation::send_email::SendEmailOutput) with field(s):
    ///   - [`message_id(String)`](crate::operation::send_email::SendEmailOutput::message_id): <p>The unique message identifier returned from the <code>SendEmail</code> action.</p>
    /// - On failure, responds with [`SdkError<SendEmailError>`](crate::operation::send_email::SendEmailError)
    pub fn send_email(&self) -> crate::operation::send_email::builders::SendEmailFluentBuilder {
        crate::operation::send_email::builders::SendEmailFluentBuilder::new(self.handle.clone())
    }
}