Skip to main content

Type Alias: MailMessage

type MailMessage: object;

Message contract understood by mail adapters and builders.

Type declaration

attachments?

optional attachments: MailAttachment[];

from?

optional from: MailParty;

headers?

optional headers: Record<string, string>;

html?

optional html: string;

subject

subject: string;

tags?

optional tags: string[];

templateId?

optional templateId: string;

text?

optional text: string;

to

to: MailParty;

variables?

optional variables: Record<string, unknown>;