Email API · SMTP settings
Stack Emails SMTP settings
The Stack Emails SMTP relay is smtp.stackemails.com on port 465 (SSL) or 587 (STARTTLS). The username is stackemails and the password is an API key, ideally a sending-only key restricted to one domain.
Last reviewed November 2026
| SMTP server | smtp.stackemails.com |
|---|---|
| Port (recommended) | 465 (SSL/TLS) |
| Port | 587 (STARTTLS) |
| Username | stackemails |
| Password | A Stack Emails API key (se_live_...) |
| Authentication | Required |
Why send through Stack Emails
SMTP mail goes through the same pipeline as the REST API: domain verification, suppression lists, quotas, request logs and webhooks all apply, so you can see exactly what happened to every message. The free plan includes 3,000 emails a month.
Setup in three steps
- Create a free account and add your sending domain (we recommend a subdomain such as
mail.yourcompany.com). - Add the DNS records shown. Check them anytime with our SPF, DKIM and DMARC checkers.
- Create a sending-only API key and use it as the SMTP password.
Example: Nodemailer
import nodemailer from "nodemailer";
const transport = nodemailer.createTransport({
host: "smtp.stackemails.com",
port: 465,
secure: true,
auth: { user: "stackemails", pass: process.env.STACKEMAILS_API_KEY },
});
await transport.sendMail({
from: "Acme <hello@mail.acme.com>",
to: "ada@example.com",
subject: "Welcome to Acme",
html: "<p>Thanks for signing up!</p>",
});
More languages are in our send email guides.
Check your domain's email records
If you send from your own domain, receiving servers check SPF, DKIM and DMARC. Use our free SPF checker, DKIM checker and DMARC checker to confirm they pass.
Settings checked against Stack Emails's public help pages. Providers change authentication rules from time to time, so confirm in their documentation if something doesn't work.