Definition of a Email.

Hierarchy (View Summary)

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.

createdAt: Date

The createdAt date. Is set to now by default.

html: string

The html content of the email.

id: string

The uuid (universal unique identifier) of the entity.

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.