Skip to main content
zerotal

Documentation


Documentation / @zerotal/notifications / MailChannel

Class: MailChannel

Defined in: notifications/src/MailChannel.ts:15

The mail notification channel — renders a notification's toMail() MailMessage and delivers it through the configured driver (log / SMTP / Resend). Built-in to @zerotal/notifications, so the mail channel works without any extra package.

Constructors

Constructor

new MailChannel(config): MailChannel

Defined in: notifications/src/MailChannel.ts:19

Parameters

config

MailConfigShape

Returns

MailChannel

Methods

send()

send(notifiable, notification): Promise<void>

Defined in: notifications/src/MailChannel.ts:52

Parameters

notifiable

Notifiable

notification

Notification

Returns

Promise<void>