@mysetup/nodemailer
v2.0.10
Published
Email helpers built on nodemailer with EJS template support.
Maintainers
Readme
@mysetup/nodemailer
Email utility package that wraps nodemailer with EJS template rendering.
Installation
pnpm add @mysetup/nodemailerSupported libraries and runtimes
| Supported | Notes | | ---------------------- | ------------- | | Node.js | Full support | | Next.js server runtime | Supported | | Browser apps | Not supported |
Usage
import { connectNodeMailer } from "@mysetup/nodemailer";
await connectNodeMailer(
{
subject: "Welcome",
toEmail: "[email protected]",
template: "Test",
value: { name: "Krishna" },
},
{
user: process.env.SMTP_USER || "",
pass: process.env.SMTP_PASS || "",
from: "[email protected]",
},
);Notes
- Built for server-side use only.
- Template files are published into
dist/viewsunlesshtmlTemplateis provided directly.
