method MailService.prototype.send
MailService.prototype.send(message: MailMessage): Promise<void>

Sends an email, resolving from from the message or the configured default.

Parameters

message: MailMessage

The message to send

Return Type

Promise<void>

Throws

Error

If no from can be resolved, or the provider rejects it

Usage

import { MailService } from "mail-plugin/src/index.ts";