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: string;
    name?: string;
}[]

Type declaration

  • address: string
  • Optional name?: string
cc: {
    address: string;
    name?: string;
}[]

Type declaration

  • address: string
  • Optional name?: string
from: {
    address: string;
    name?: string;
}

Type declaration

  • address: string
  • Optional name?: string
headers: _TygojaDict
html: string
subject: string
text: string
to: {
    address: string;
    name?: string;
}[]

Type declaration

  • address: string
  • Optional name?: string

Generated using TypeDoc