SMTP for Node.js — nodemailer Transport in 5 Lines
Connect nodemailer to RAPID SMTP and get a campaign manager, contact CRM, and open/click tracking on top of your existing transactional sends.
Published January 15, 2026 · By RAPID SMTP
The problem for Node.js developers
- nodemailer ships transport, not analytics.
- You write your own bounce-handling, suppression list, and template engine.
- Marketing emails live in a separate tool no one wants to maintain.
How RAPID SMTP solves it
Use RAPID SMTP as transport
Replace your existing SMTP credentials with RAPID SMTP's relay. All sends are logged, tracked, and suppressed automatically.
Templates via API
POST to /api/v1/send with a template id. Variables are merged server-side.
Webhooks
Bounce/complaint events POST to your endpoint as JSON.
Setup in 3 steps
- `npm i nodemailer`
- Create a transport pointing at RAPID SMTP.
- Call transport.sendMail({ ... }) — done.
Code snippet
import nodemailer from "nodemailer";
const transport = nodemailer.createTransport({
host: "smtp.rapidhostbd.com",
port: 587,
secure: false,
auth: { user: process.env.RAPID_USER, pass: process.env.RAPID_PASS },
});
await transport.sendMail({
from: '"Your Brand" <hello@yourdomain.com>',
to: "customer@example.com",
subject: "Welcome!",
html: "<h1>Hi there</h1>",
});Recommended SMTP providers
- Amazon SES
- Mailgun
- Gmail
FAQ
Does this work with Next.js / TanStack Start / Hono?
Any Node.js server with nodemailer (or any SMTP client) works.
Ready to send your first campaign?
Connect your own SMTP and send bulk email starting at $0.59/month.