nylas
    Preparing search index...

    Interface CreateDraftRequest

    Interface representing a request to create a draft.

    interface CreateDraftRequest {
        attachments?: CreateAttachmentRequest[];
        bcc?: EmailName[];
        body?: string;
        cc?: EmailName[];
        customHeaders?: CustomHeader[];
        from?: EmailName[];
        isPlaintext?: boolean;
        replyTo?: EmailName[];
        replyToMessageId?: string;
        sendAt?: number;
        starred?: boolean;
        subject?: string;
        to: EmailName[];
        trackingOptions?: TrackingOptions;
    }

    Hierarchy (View Summary)

    Index

    Properties

    attachments?: CreateAttachmentRequest[]

    An array of files to attach to the message.

    bcc?: EmailName[]

    An array of bcc recipients.

    body?: string

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

    cc?: EmailName[]

    An array of cc recipients.

    customHeaders?: CustomHeader[]

    An array of custom headers to add to the message.

    from?: EmailName[]

    An array of name/email address pairs that the message was sent from. This is usually one pair only, but can be many.

    isPlaintext?: boolean

    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. Defaults to false.

    replyTo?: EmailName[]

    An array of name and email pairs that override the sent reply-to headers.

    replyToMessageId?: string

    The ID of the message that you are replying to.

    sendAt?: number

    Unix timestamp to send the message at.

    starred?: boolean

    Whether or not the message has been starred by the user.

    subject?: string

    The message subject.

    to: EmailName[]

    An array of message recipients.

    trackingOptions?: TrackingOptions

    Options for tracking opens, links, and thread replies.