Integrations
SMTP relay
Send through Stack Emails from any tool that supports SMTP.
| Setting | Value |
|---|---|
| Host | smtp.stackemails.com |
| Port | 465 (implicit TLS) or 587 (STARTTLS) |
| Username | stackemails |
| Password | An API key (se_live_...) |
SMTP sends go through the same pipeline as the API: domain checks, suppression, quotas, logs and webhooks all apply. Use a sending-access key restricted to one domain for each tool.
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: "hello@mail.acme.com", to: "ada@example.com", subject: "Hi", html: "<p>Hello</p>" });