Google Apps Script API
    Preparing search index...

    Options for a Gmail draft.

    interface GmailAdvancedOptions {
        attachments?: BlobSource[];
        bcc?: string;
        cc?: string;
        from?: string;
        htmlBody?: string;
        inlineImages?: { [imageKey: string]: BlobSource };
        name?: string;
        noReply?: boolean;
        replyTo?: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    attachments?: BlobSource[]

    An array of files to send with the email.

    bcc?: string

    A comma-separated list of email addresses to BCC.

    cc?: string

    A comma-separated list of email addresses to CC.

    from?: string

    The address that the email should be sent from, which must be one of the values returned by GmailApp.getAliases().

    htmlBody?: string

    If set, devices capable of rendering HTML will use it instead of the required body argument; you can add an optional inlineImages field in HTML body if you have inlined images for your email.

    inlineImages?: { [imageKey: string]: BlobSource }

    A JavaScript object containing a mapping from image key (String) to image data (BlobSource) ; this assumes that the htmlBody parameter is used and contains references to these images in the format <img src="cid:imageKey" />.

    name?: string

    The name of the sender of the email (default: the user's name).

    noReply?: boolean

    True if the email should be sent from a generic no-reply email address to discourage recipients from responding to emails; this option is only possible for Google Workspace accounts, not Gmail users.

    replyTo?: string

    An email address to use as the default reply-to address (default: the user's email address).