SLSmartletter API

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.

SettingValue
Hostsmtp.smartletter.ai
Port587 (STARTTLS) or 465 (TLS / SSL)
Usernamesmartletter
PasswordAn 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 PLAIN and AUTH LOGIN are supported. The username resend is 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 From header must be one address on a verified domain of the workspace (and on the key's domain for a locked key). Otherwise the relay answers 550 5.7.1.
  • Recipients are the envelope's (RCPT TO). Those not in To or Cc are sent as bcc. 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, References and X-* headers are passed on; X-SES-* headers are dropped.
  • X-Smartletter-Tags: name=value, name2=value2 sets the email's tags. X-Smartletter-Scheduled-At schedules it (same formats as scheduled_at).
  • The Message-ID is 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

ReplyMeaning
250 2.0.0 OK queued as <id>Accepted; <id> is the email id (GET /emails/{id})
451 4.x.xTemporary (rate limit, monthly quota, service unavailable): your client retries
550 5.7.1Sender domain not verified, or the key is not allowed
550 5.6.0Invalid message (blocked attachment type, malformed header…)
552 5.3.4Message too big
535 5.7.8Wrong username or key

Logs

  • GET /emails/{id} shows created_via: "smtp" with smtp.client_ip and smtp.message_id, and each recipient's status with the SMTP diagnostic of a bounce.
  • GET /logs marks the relay's calls with source: "smtp".

Common setups

  • WordPress (WP Mail SMTP, "Other SMTP"): host smtp.smartletter.ai, encryption TLS, port 587, authentication on, username smartletter, password = your SMTP credential. The "From Email" must be on a verified domain.
  • Supabase Auth (Authentication → SMTP settings): host smtp.smartletter.ai, port 465, username smartletter, password = your SMTP credential, sender email on a verified domain.