Node.js email API
Send transactional email with Node.js
Use zasend-node when your Node app needs to send product email: verification codes, password resets, receipts, usage alerts, or account notifications.
Install
npm install zasend-node
Use cases
- Send verification and login code emails from Express or Next.js
- Send password reset links from API routes or background jobs
- Send receipts and account notifications from workers
- Receive webhooks when messages bounce or fail
const { ZaSend } = require("zasend-node");
const zasend = new ZaSend(process.env.ZASEND_API_KEY);
await zasend.sendEmail({
from: "Acme <noreply@acme.com>",
to: "user@example.com",
subject: "Verify your email",
html: "<p>Your verification code is 123456</p>",
text: "Your verification code is 123456"
});
Production tip
Keep the API key in environment variables, not in client-side JavaScript. The SDK is for server-side Node.js code: API routes, workers, queues, and backend services.