MailerMessage defines a single email message.

const message = new MailerMessage({
from: {
address: $app.settings().meta.senderAddress,
name: $app.settings().meta.senderName,
},
to: [{address: "test@example.com"}],
subject: "YOUR_SUBJECT...",
html: "YOUR_HTML_BODY...",
})

$app.newMailClient().send(message)

Hierarchy

Implements

Constructors

Properties

attachments: _TygojaDict
bcc: Address[]
cc: Address[]
from: Address
headers: _TygojaDict
html: string
subject: string
text: string
to: Address[]

Generated using TypeDoc