SendTransactionalEmailRequest

Class representing a request to send a transactional email from a verified domain.

Constructors

Link copied to clipboard
public SendTransactionalEmailRequest SendTransactionalEmailRequest(@Json(name = "to") List<EmailName> to, @Json(name = "from") EmailName from, @Json(name = "bcc") List<EmailName> bcc, @Json(name = "cc") List<EmailName> cc, @Json(name = "reply_to") List<EmailName> replyTo, @Json(name = "attachments") List<CreateAttachmentRequest> attachments, @Json(name = "subject") String subject, @Json(name = "body") String body, @Json(name = "send_at") Long sendAt, @Json(name = "reply_to_message_id") String replyToMessageId, @Json(name = "tracking_options") TrackingOptions trackingOptions, @Json(name = "use_draft") Boolean useDraft, @Json(name = "custom_headers") List<CustomHeader> customHeaders, @Json(name = "is_plaintext") Boolean isPlaintext)

Types

Link copied to clipboard
public final class Builder

Properties

Link copied to clipboard

An array of files to attach to the message.

Link copied to clipboard
private final List<EmailName> bcc

An array of bcc recipients.

Link copied to clipboard
private final String body

The full HTML message body. Messages with only plain-text representations are up-converted to HTML.

Link copied to clipboard
private final List<EmailName> cc

An array of cc recipients.

Link copied to clipboard

A list of custom headers to add to the message.

Link copied to clipboard
private final EmailName from

The sender. Must use a verified domain email address.

Link copied to clipboard
private final Boolean isPlaintext

When true, the message body is sent as plain text and the MIME data doesn't include the HTML version of the message. When false, the message body is sent as HTML.

Link copied to clipboard
private final List<EmailName> replyTo

An array of name and email pairs that override the sent reply-to headers. Recommended if there is no Agent Account on the domain to receive replies.

Link copied to clipboard
private final String replyToMessageId

The ID of the message that you are replying to.

Link copied to clipboard
private final Long sendAt

Unix timestamp to send the message at.

Link copied to clipboard
private final String subject

The message subject.

Link copied to clipboard
private final List<EmailName> to

An array of message recipients.

Link copied to clipboard

Options for tracking opens, links, and thread replies.

Link copied to clipboard
private final Boolean useDraft

Whether or not to use draft support. This is primarily used when dealing with large attachments.

Functions

Link copied to clipboard

An array of files to attach to the message.

Link copied to clipboard
public final List<EmailName> getBcc()

An array of bcc recipients.

Link copied to clipboard
public final String getBody()

The full HTML message body. Messages with only plain-text representations are up-converted to HTML.

Link copied to clipboard
public final List<EmailName> getCc()

An array of cc recipients.

Link copied to clipboard

A list of custom headers to add to the message.

Link copied to clipboard
public final EmailName getFrom()

The sender. Must use a verified domain email address.

Link copied to clipboard
public final List<EmailName> getReplyTo()

An array of name and email pairs that override the sent reply-to headers. Recommended if there is no Agent Account on the domain to receive replies.

Link copied to clipboard
public final String getReplyToMessageId()

The ID of the message that you are replying to.

Link copied to clipboard
public final Long getSendAt()

Unix timestamp to send the message at.

Link copied to clipboard
public final String getSubject()

The message subject.

Link copied to clipboard
public final List<EmailName> getTo()

An array of message recipients.

Link copied to clipboard

Options for tracking opens, links, and thread replies.

Link copied to clipboard
public final Boolean getUseDraft()

Whether or not to use draft support. This is primarily used when dealing with large attachments.

Link copied to clipboard
public final Boolean isPlaintext()

When true, the message body is sent as plain text and the MIME data doesn't include the HTML version of the message. When false, the message body is sent as HTML.