public static interface EmailMessage.Builder extends SdkPojo, CopyableBuilder<EmailMessage.Builder,EmailMessage>
| Modifier and Type | Method and Description |
|---|---|
EmailMessage.Builder |
body(String body)
The body of the email message.
|
EmailMessage.Builder |
feedbackForwardingAddress(String feedbackForwardingAddress)
The email address to forward bounces and complaints to, if feedback forwarding is enabled.
|
EmailMessage.Builder |
fromAddress(String fromAddress)
The verified email address to send the email message from.
|
default EmailMessage.Builder |
rawEmail(Consumer<RawEmail.Builder> rawEmail)
The email message, represented as a raw MIME message.
|
EmailMessage.Builder |
rawEmail(RawEmail rawEmail)
The email message, represented as a raw MIME message.
|
EmailMessage.Builder |
replyToAddresses(Collection<String> replyToAddresses)
The reply-to email address(es) for the email message.
|
EmailMessage.Builder |
replyToAddresses(String... replyToAddresses)
The reply-to email address(es) for the email message.
|
default EmailMessage.Builder |
simpleEmail(Consumer<SimpleEmail.Builder> simpleEmail)
The email message, composed of a subject, a text part, and an HTML part.
|
EmailMessage.Builder |
simpleEmail(SimpleEmail simpleEmail)
The email message, composed of a subject, a text part, and an HTML part.
|
EmailMessage.Builder |
substitutions(Map<String,? extends Collection<String>> substitutions)
The default message variables to use in the email message.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildEmailMessage.Builder body(String body)
The body of the email message.
body - The body of the email message.EmailMessage.Builder feedbackForwardingAddress(String feedbackForwardingAddress)
The email address to forward bounces and complaints to, if feedback forwarding is enabled.
feedbackForwardingAddress - The email address to forward bounces and complaints to, if feedback forwarding is enabled.EmailMessage.Builder fromAddress(String fromAddress)
The verified email address to send the email message from. The default value is the FromAddress specified for the email channel.
fromAddress - The verified email address to send the email message from. The default value is the FromAddress
specified for the email channel.EmailMessage.Builder rawEmail(RawEmail rawEmail)
The email message, represented as a raw MIME message.
rawEmail - The email message, represented as a raw MIME message.default EmailMessage.Builder rawEmail(Consumer<RawEmail.Builder> rawEmail)
The email message, represented as a raw MIME message.
This is a convenience method that creates an instance of theRawEmail.Builder avoiding the need to
create one manually via RawEmail.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result is
passed to rawEmail(RawEmail).
rawEmail - a consumer that will call methods on RawEmail.BuilderrawEmail(RawEmail)EmailMessage.Builder replyToAddresses(Collection<String> replyToAddresses)
The reply-to email address(es) for the email message. If a recipient replies to the email, each reply-to address receives the reply.
replyToAddresses - The reply-to email address(es) for the email message. If a recipient replies to the email, each
reply-to address receives the reply.EmailMessage.Builder replyToAddresses(String... replyToAddresses)
The reply-to email address(es) for the email message. If a recipient replies to the email, each reply-to address receives the reply.
replyToAddresses - The reply-to email address(es) for the email message. If a recipient replies to the email, each
reply-to address receives the reply.EmailMessage.Builder simpleEmail(SimpleEmail simpleEmail)
The email message, composed of a subject, a text part, and an HTML part.
simpleEmail - The email message, composed of a subject, a text part, and an HTML part.default EmailMessage.Builder simpleEmail(Consumer<SimpleEmail.Builder> simpleEmail)
The email message, composed of a subject, a text part, and an HTML part.
This is a convenience method that creates an instance of theSimpleEmail.Builder avoiding the need to
create one manually via SimpleEmail.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result
is passed to simpleEmail(SimpleEmail).
simpleEmail - a consumer that will call methods on SimpleEmail.BuildersimpleEmail(SimpleEmail)EmailMessage.Builder substitutions(Map<String,? extends Collection<String>> substitutions)
The default message variables to use in the email message. You can override the default variables with individual address variables.
substitutions - The default message variables to use in the email message. You can override the default variables with
individual address variables.Copyright © 2023. All rights reserved.