method EmailChannel.prototype.send
EmailChannel.prototype.send(notification: NotificationMessage): Promise<void>

Builds a MailMessage and sends it via IMailer.

Parameters

notification: NotificationMessage

The notification to send

Return Type

Promise<void>

Throws

Error

If to.email is absent or mailer rejects

Usage

import { EmailChannel } from "notification-plugin/src/index.ts";