Nodemailer
Configure a Nodemailer transport pointed at Unitpost and send your first message in a few lines.
What are the SMTP settings?
| Host | smtp.unitpost.com |
|---|---|
| Username | unitpost(always this literal value) |
| Password | Your Unitpost API key(must carry emails:send) |
| Port (STARTTLS) | 587(or 2587 if blocked) |
| Port (implicit TLS) | 465(or 2465 if blocked) |
| From address | Any address on a verified domain |
How do I set it up?
Install Nodemailer
Add it to your Node.js project (Node 14+).
Shellnpm install nodemailerCreate a transport
Point the transport at
smtp.unitpost.com. Use port 587 withsecure: falsefor STARTTLS, or port 465 withsecure: truefor implicit TLS. The username is alwaysunitpost; the password is your API key.JavaScriptimport nodemailer from "nodemailer"; const transporter = nodemailer.createTransport({ host: "smtp.unitpost.com", port: 587, secure: false, // STARTTLS auth: { user: "unitpost", pass: process.env.UNITPOST_API_KEY, }, });Send an email
The
fromaddress must be on a domain you've verified in Unitpost.JavaScriptawait transporter.sendMail({ from: "you@yourdomain.com", to: "customer@example.com", subject: "Hello from Unitpost", html: "<h1>Welcome!</h1><p>Sent via SMTP.</p>", });Verify it in the dashboard
Open Activity in your Unitpost dashboard — the message appears alongside API sends, with delivery, open, and click status.