SMTP
SMTP is a second front door onto POST /v1/send. Apps
that only have host / port / user / password fields (Twenty, WordPress,
Laravel, PHPMailer) can send through Letter without calling HTTP. The mail
uses the same project API key, the same verified sending domain, the same
suppression and plan gates, and lands in the same transactional log.
If you can use an SDK or POST /v1/send, do that. SMTP exists for software
you do not control.
Prerequisites
- A project API key (
lt_live_…) from Settings → Project API keys - A verified sending domain (Letter subdomain or your own)
Settings
| Host | smtp.letter.app |
| Port | 465 (implicit TLS) or 587 (STARTTLS) |
| Alternate ports | 2465 (implicit TLS), 2587 (STARTTLS) |
| Username | letter |
| Password | your project API key |
| Encryption | SSL / TLS |
There is no separate SMTP user. Identity is the API key.
Use 465 with SSL / TLS or 587 with STARTTLS. Authentication is
refused on 587 until the connection has upgraded to TLS.
Quick start
Point the app at the table above. The From address must be on this project’s verified sending domain (the same From you configured under Settings → Domain).
Twenty
In Settings → Admin Panel → EMAIL_SETTINGS:
EMAIL_DRIVER=smtp
EMAIL_SMTP_HOST=smtp.letter.app
EMAIL_SMTP_PORT=465
EMAIL_SMTP_USER=letter
EMAIL_SMTP_PASSWORD=lt_live_…
EMAIL_SMTP_NO_TLS=false
EMAIL_FROM_ADDRESS=hello@your-verified-domain
EMAIL_FROM_NAME=You
WordPress (WP Mail SMTP)
Mailer: Other SMTP. Host smtp.letter.app, encryption SSL, port
465, Auto TLS on, authentication on, username letter, password the API
key.
Laravel
MAIL_MAILER=smtp
MAIL_HOST=smtp.letter.app
MAIL_PORT=465
MAIL_USERNAME=letter
MAIL_PASSWORD=lt_live_…
MAIL_ENCRYPTION=ssl
MAIL_FROM_ADDRESS=hello@your-verified-domain
MAIL_FROM_NAME="${APP_NAME}"
What happens on send
- AUTH PLAIN/LOGIN — username must be
letter; password is the project key. - Up to 50 unique envelope recipients across To, Cc, and Bcc. A visible
Toaddress is required; Bcc-only messages are refused so hidden addresses are never promoted into the rebuilt message. - The MIME body and attachments are parsed and posted to
/v1/sendwithtag: smtp; Letter rebuilds it as SES Raw. - Every recipient is upserted as a contact (
source: "api"). Existing contacts are reused. If all new addresses do not fit under the workspace contact cap, the whole message is refused (554, same as403 contact_quota_exceededon HTTP). - The monthly email cap, daily shared-domain cap, suppressions, and suspension gates are the HTTP ones.
Up to 10 attachments are supported. Nested message/rfc822 attachments are
refused. Body plus decoded attachment bytes are capped at 10 MB.
Idempotency
Set X-Letter-Idempotency-Key or Letter-Idempotency-Key (8–128 characters)
to make client retries safe. If neither is present, a Message-ID in that
length range is used.
Custom headers
Passed through to /v1/send (max 20). Envelope/MIME headers,
List-Unsubscribe*, X-Letter-*, and X-SES-* are reserved.
Errors
SMTP reply codes are the HTTP errors in envelope form. Look up the send in the dashboard; there are no SMTP server logs.
| SMTP | HTTP | When |
|---|---|---|
535 | 401 | Bad username or API key |
550 | 403 suppressed | Recipient bounced, complained, or was admin-suppressed |
554 | 403 / 400 | Contact cap, email quota, daily cap, suspended, billing, bad From, validation |
552 | — | Too many recipients/attachments, nested message, or more than 10 MB |
421 | 429 | Rate limited. Retry later |
451 | 5xx | Temporary failure. Retry with the same idempotency key |
403 reasons from the API (contact_quota_exceeded, email_quota_exceeded,
daily_cap, billing_required, account_suspended, suppressed) apply
unchanged.
FAQ
Where do I see the email? The project’s Transactional page, or
GET /v1/projects/{slug}/messages / letter messages list. SMTP sends are
tagged smtp.
Do rate limits apply? Yes — the same per-key limit as /v1/send.
Can I use SMTP from Rails? Prefer the Ruby SDK
ActionMailer :letter delivery method. SMTP is for apps you cannot change.
Do you offer IMAP or inbound SMTP? No.