interface ISmtpTransport
Since 0.1.0

Structural shape of a nodemailer transport. The plugin never hard-depends on nodemailer; inject this shape, or SmtpProvider lazily loads the package and adapts it to this facade.

Methods

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

Sends one message.

Since 0.1.0
optional
verify(): Promise<unknown>

M70c: verifies the SMTP connection. nodemailer's real transport exposes this; a minimal injected fake may omit it, in which case the provider reports unknown reachability rather than false.

Usage

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