aws_sdk_pinpointemail/client/send_email.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`SendEmail`](crate::operation::send_email::builders::SendEmailFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`from_email_address(impl Into<String>)`](crate::operation::send_email::builders::SendEmailFluentBuilder::from_email_address) / [`set_from_email_address(Option<String>)`](crate::operation::send_email::builders::SendEmailFluentBuilder::set_from_email_address):<br>required: **false**<br><p>The email address that you want to use as the "From" address for the email. The address that you specify has to be verified.</p><br>
7 /// - [`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>An object that contains the recipients of the email message.</p><br>
8 /// - [`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 addresses for the message. When the recipient replies to the message, each Reply-to address receives the reply.</p><br>
9 /// - [`feedback_forwarding_email_address(impl Into<String>)`](crate::operation::send_email::builders::SendEmailFluentBuilder::feedback_forwarding_email_address) / [`set_feedback_forwarding_email_address(Option<String>)`](crate::operation::send_email::builders::SendEmailFluentBuilder::set_feedback_forwarding_email_address):<br>required: **false**<br><p>The address that Amazon Pinpoint should send bounce and complaint notifications to.</p><br>
10 /// - [`content(EmailContent)`](crate::operation::send_email::builders::SendEmailFluentBuilder::content) / [`set_content(Option<EmailContent>)`](crate::operation::send_email::builders::SendEmailFluentBuilder::set_content):<br>required: **true**<br><p>An object that contains the body of the message. You can send either a Simple message or a Raw message.</p><br>
11 /// - [`email_tags(MessageTag)`](crate::operation::send_email::builders::SendEmailFluentBuilder::email_tags) / [`set_email_tags(Option<Vec::<MessageTag>>)`](crate::operation::send_email::builders::SendEmailFluentBuilder::set_email_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 the <code>SendEmail</code> operation. Tags correspond to characteristics of the email that you define, so that you can publish email sending events.</p><br>
12 /// - [`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 that you want to use when sending the email.</p><br>
13 /// - On success, responds with [`SendEmailOutput`](crate::operation::send_email::SendEmailOutput) with field(s):
14 /// - [`message_id(Option<String>)`](crate::operation::send_email::SendEmailOutput::message_id): <p>A unique identifier for the message that is generated when Amazon Pinpoint accepts the message.</p><note> <p>It is possible for Amazon Pinpoint to accept a message without sending it. This can happen when the message you're trying to send has an attachment doesn't pass a virus check, or when you send a templated email that contains invalid personalization content, for example.</p> </note>
15 /// - On failure, responds with [`SdkError<SendEmailError>`](crate::operation::send_email::SendEmailError)
16 pub fn send_email(&self) -> crate::operation::send_email::builders::SendEmailFluentBuilder {
17 crate::operation::send_email::builders::SendEmailFluentBuilder::new(self.handle.clone())
18 }
19}