SMTP relay
Send from WordPress, Supabase Auth or any SMTP client through smtp.smartletter.ai.
Tools that only speak SMTP can send through Smartletter. The relay turns each message into a POST /emails call, so the same rules apply: verified domain, monthly quota, suppression list, webhooks and bounce diagnostics.
| Setting | Value |
|---|---|
| Host | smtp.smartletter.ai |
| Port | 587 (STARTTLS) or 465 (TLS / SSL) |
| Username | smartletter |
| Password | An API key (sl_…) with full_access or sending_access, or a dedicated SMTP credential |
import nodemailer from "nodemailer";
const transporter = nodemailer.createTransport({
host: "smtp.smartletter.ai",
port: 587, // STARTTLS (or 465 with secure: true)
secure: false,
requireTLS: true,
auth: { user: "smartletter", pass: process.env.SMARTLETTER_SMTP_KEY },
});
await transporter.sendMail({
from: "Acme <[email protected]>", // a verified domain of your workspace
to: "[email protected]",
subject: "Welcome",
html: "<p>Hi Jane</p>",
headers: { "X-Smartletter-Tags": "flow=welcome" },
});Credentials
- Create a dedicated SMTP credential in Settings → SMTP: a sending-only key, optionally locked to one domain. Safer than pasting a full access key into a plugin.
- Rotate it from the same page: you get a new password and the old one keeps working for 24 hours, time to update your tools.
- Login is only offered after TLS (STARTTLS on 587, implicit TLS on 465).
AUTH PLAINandAUTH LOGINare supported. The usernameresendis also accepted, to reuse a Resend SMTP setup. - 5 failed logins in 10 minutes block the IP address for 30 minutes.
How a message is translated
- The
Fromheader must be one address on a verified domain of the workspace (and on the key's domain for a locked key). Otherwise the relay answers550 5.7.1. - Recipients are the envelope's (
RCPT TO). Those not inToorCcare sent asbcc. A message with only blind copies is sent once per recipient, so no hidden address ever shows in a header. - HTML, text, attachments and inline images (
cid:) are kept.List-Unsubscribe,In-Reply-To,ReferencesandX-*headers are passed on;X-SES-*headers are dropped. X-Smartletter-Tags: name=value, name2=value2sets the email's tags.X-Smartletter-Scheduled-Atschedules it (same formats asscheduled_at).- The
Message-IDis used as an idempotency key: a client that resends the same message after a network error does not send it twice. - Limits: 10 MB per message as sent (attachments included), 50 recipients, 300 messages per minute per key, 10 connections per IP address.
Replies
| Reply | Meaning |
|---|---|
250 2.0.0 OK queued as <id> | Accepted; <id> is the email id (GET /emails/{id}) |
451 4.x.x | Temporary (rate limit, monthly quota, service unavailable): your client retries |
550 5.7.1 | Sender domain not verified, or the key is not allowed |
550 5.6.0 | Invalid message (blocked attachment type, malformed header…) |
552 5.3.4 | Message too big |
535 5.7.8 | Wrong username or key |
Logs
GET /emails/{id}showscreated_via: "smtp"withsmtp.client_ipandsmtp.message_id, and each recipient's status with the SMTP diagnostic of a bounce.GET /logsmarks the relay's calls withsource: "smtp".
Common setups
- WordPress (WP Mail SMTP, "Other SMTP"): host
smtp.smartletter.ai, encryption TLS, port 587, authentication on, usernamesmartletter, password = your SMTP credential. The "From Email" must be on a verified domain. - Supabase Auth (Authentication → SMTP settings): host
smtp.smartletter.ai, port 465, usernamesmartletter, password = your SMTP credential, sender email on a verified domain.