Data for creating a new email in the db.

Hierarchy

  • Omit<Email, "createdAt" | "id">
    • CreateEmailData

Constructors

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.

status: EmailStatus

The emails status, like QUEUED, SENT or FAILED etc.

subject: string

The subject of the email.

userId?: string

Optional id of a userId to which this email belongs.