method ISmtpTransport.sendMail
ISmtpTransport.sendMail(mail: { from: string; to: string; subject: string; text?: string; html?: string; cc?: string; bcc?: string; }): Promise<unknown>

Sends one message.

Parameters

mail: { from: string; to: string; subject: string; text?: string; html?: string; cc?: string; bcc?: string; }

The nodemailer message fields

Return Type

Promise<unknown>

Resolves when the transport accepts the message

Usage

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