Data for queuing a new email.

Hierarchy

  • Omit<CreateEmailData, "status" | "persist" | "sender" | "priority"> & Partial<
        Pick<CreateEmailData, "persist" | "sender" | "priority">,
    >
    • QueueEmailData

Constructors

  • Parameters

    • ...args: any[]

    Returns QueueEmailData

Properties

attachments?: EmailAttachment[]

The attachments of the email.

bcc?: string[]

The recipients that should receive the email as bcc.

cc?: string[]

The recipients that should receive the email as cc.

html: string

The html content of the email.

persist?: boolean

Whether or not the email should be stored in the db, even after it has been sent.

priority?: EmailPriority

The priority of the email.

recipients: string[]

The recipients that should receive the email.

sender?: string

The sender from which the email should be sent.

subject: string

The subject of the email.

userId?: string

Optional id of a userId to which this email belongs.