[][src]Struct rusoto_sesv2::SendEmailRequest

pub struct SendEmailRequest {
    pub configuration_set_name: Option<String>,
    pub content: EmailContent,
    pub destination: Option<Destination>,
    pub email_tags: Option<Vec<MessageTag>>,
    pub feedback_forwarding_email_address: Option<String>,
    pub feedback_forwarding_email_address_identity_arn: Option<String>,
    pub from_email_address: Option<String>,
    pub from_email_address_identity_arn: Option<String>,
    pub list_management_options: Option<ListManagementOptions>,
    pub reply_to_addresses: Option<Vec<String>>,
}

Represents a request to send a single formatted email using Amazon SES. For more information, see the Amazon SES Developer Guide.

Fields

configuration_set_name: Option<String>

The name of the configuration set that you want to use when sending the email.

content: EmailContent

An object that contains the body of the message. You can send either a Simple message Raw message or a template Message.

destination: Option<Destination>

An object that contains the recipients of the email message.

email_tags: Option<Vec<MessageTag>>

A list of tags, in the form of name/value pairs, to apply to an email that you send using the SendEmail operation. Tags correspond to characteristics of the email that you define, so that you can publish email sending events.

feedback_forwarding_email_address: Option<String>

The address that you want bounce and complaint notifications to be sent to.

feedback_forwarding_email_address_identity_arn: Option<String>

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 FeedbackForwardingEmailAddress parameter.

For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to use feedback@example.com, then you would specify the FeedbackForwardingEmailAddressIdentityArn to be arn:aws:ses:us-east-1:123456789012:identity/example.com, and the FeedbackForwardingEmailAddress to be feedback@example.com.

For more information about sending authorization, see the Amazon SES Developer Guide.

from_email_address: Option<String>

The email address that you want to use as the "From" address for the email. The address that you specify has to be verified.

from_email_address_identity_arn: Option<String>

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 FromEmailAddress parameter.

For example, if the owner of example.com (which has ARN arn:aws:ses:us-east-1:123456789012:identity/example.com) attaches a policy to it that authorizes you to use sender@example.com, then you would specify the FromEmailAddressIdentityArn to be arn:aws:ses:us-east-1:123456789012:identity/example.com, and the FromEmailAddress to be sender@example.com.

For more information about sending authorization, see the Amazon SES Developer Guide.

For Raw emails, the FromEmailAddressIdentityArn value overrides the X-SES-SOURCE-ARN and X-SES-FROM-ARN headers specified in raw email message content.

list_management_options: Option<ListManagementOptions>

An object used to specify a list or topic to which an email belongs, which will be used when a contact chooses to unsubscribe.

reply_to_addresses: Option<Vec<String>>

The "Reply-to" email addresses for the message. When the recipient replies to the message, each Reply-to address receives the reply.

Trait Implementations

impl Clone for SendEmailRequest[src]

impl Debug for SendEmailRequest[src]

impl Default for SendEmailRequest[src]

impl PartialEq<SendEmailRequest> for SendEmailRequest[src]

impl Serialize for SendEmailRequest[src]

impl StructuralPartialEq for SendEmailRequest[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.