function loadNodemailerModule
loadNodemailerModule(): Promise<NodemailerModule>

Lazily imports nodemailer. Only exercised on the lazy path.

Return Type

The nodemailer module

Throws

Error

If npm:nodemailer cannot be resolved

Usage

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