Create Draft Request
Class representing a request to create a draft.
Constructors
Link copied to clipboard
public CreateDraftRequest CreateDraftRequest(@Json(name = "to" ) List<EmailName> to, @Json(name = "bcc" ) List<EmailName> bcc, @Json(name = "cc" ) List<EmailName> cc, @Json(name = "reply_to" ) List<EmailName> replyTo, List<CreateAttachmentRequest> attachments, @Json(name = "snippet" ) String snippet, @Json(name = "subject" ) String subject, @Json(name = "thread_id" ) String threadId, @Json(name = "body" ) String body, @Json(name = "starred" ) Boolean starred, @Json(name = "unread" ) Boolean unread, @Json(name = "send_at" ) Integer sendAt, @Json(name = "reply_to_message_id" ) String replyToMessageId, @Json(name = "tracking_options" ) TrackingOptions trackingOptions)
Types
Link copied to clipboard
Builder for CreateDraftRequest.
Properties
Functions
Link copied to clipboard
An array of files to attach to the message.
Link copied to clipboard
An array of name and email pairs that override the sent reply-to headers.
Link copied to clipboard
The ID of the message that you are replying to.
Link copied to clipboard
A short snippet of the message body. This is the first 100 characters of the message body, with any HTML tags removed.
Link copied to clipboard
Whether or not the message has been starred by the user.
Link copied to clipboard
The message subject.
Link copied to clipboard
A reference to the parent thread object. If this is a new draft, the thread will be empty.
Link copied to clipboard
Options for tracking opens, links, and thread replies.