# Outbox Stack documentation > Every docs page as Markdown. Index: https://outboxstack.app/llms.txt # Your first email. Your next connection. A clear path from your workspace to your first send. Connect your backend, send transactional email, and follow every message. `https://outboxstack.app` **Before you send** You’ll need a verified account, a verified sender domain, a transactional route, and a workspace API key. Use managed sending or connect your own AWS SES account. To decide between them, read [Choose your setup](https://outboxstack.app/docs/choose-setup). To build before any of that is ready, create a [test key](https://outboxstack.app/docs/#test-mode): it accepts mail without sending it. ## Prepare your workspace 1. Create an account, verify your email and sign in. 2. Open **Sending providers**, choose managed sending, and complete the sending-use and consent questions. Check Billing for account status and your daily limit. 3. Open **Domains**, add a domain you control and copy the generated DNS records. Use “Check now” until verification succeeds. Keep your existing root MX records for receiving mail; the bounce-subdomain MX is separate. 4. Confirm transactional routing in Sending providers. Open **API keys & SMTP** and create an API key. Choose **Sending only** for apps that just send email: the key can't change your workspace and can be locked to one sender domain. Copy it once and store it in your backend's secret manager. Customers connect to Outbox Stack, using an Outbox Stack API key. Managed sending doesn't require customer AWS credentials. DNS verification records can identify our delivery provider. We don't host customer inboxes or receive replies. ## Send with the API Set `MAIL_BASE_URL` to `https://outboxstack.app` and `MAIL_API_KEY` to your key. Replace both email addresses with your verified sender and a real test recipient. ``` curl "$MAIL_BASE_URL/v1/messages" \ -H "Authorization: Bearer $MAIL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: reset-request-unique-id" \ --data '{ "from": "accounts@your-verified-domain.com", "fromName": "Your app", "to": "customer@example.com", "toName": "Ada Obi", "replyTo": "support@your-verified-domain.com", "subject": "Reset your password", "text": "Use the password-reset link generated by your app." }' ``` A new request returns `202 {"id":"…","status":"queued"}`. Repeating the same idempotency key returns the original message with HTTP 200. Use a different key for a different reset request. Accepted means queued, not delivered. Optional fields: `toName`, `replyTo`, `html`, `template` with `data` in place of subject and body, `cc` and `bcc`, up to 10 `attachments` (base64, 10 MB in total), up to 20 custom `headers`, and up to 10 `metadata` strings that come back in `GET` and webhooks. `to`, `cc` and `bcc` take one address or a list, written `ada@example.com` or `Ada Obi `. Each recipient (at most 50 per send) becomes its own message with its own id, status and bounce tracking, and counts as one email. The response's `id` is the first recipient's; `recipients` lists every id. Every copy shows the full To and Cc lines; Bcc never appears. Multiple recipients need managed sending, SES or SMTP. Send up to 100 different messages at once with `POST /v1/messages/batch` and `{"messages":[…]}`; each item may carry its own `idempotencyKey` and succeeds or fails independently. The full contract is in the [OpenAPI 3.1 spec](https://outboxstack.app/openapi.json). **The API and SMTP are for transactional email.** That means one message caused by something a person did: a password reset, a receipt, a sign-in code. Every message sent this way goes on the transactional stream. For newsletters and announcements, import your list under **Audience** and send a **Campaign**. Campaigns add the unsubscribe link and one-click List-Unsubscribe header, skip unsubscribed and suppressed contacts, send large lists in a first batch before the rest, and pause by themselves if bounces or complaints climb. Don't loop over a mailing list with the send API: those messages have none of these protections, and complaints from them count against your account. ## Node.js & TypeScript ``` npm install @getoutbox/sdk ``` [Download the SDK](https://outboxstack.app/sdk/mail.js) and [TypeScript declarations](https://outboxstack.app/sdk/mail.d.ts) into your backend and import `./mail.js`, or install `npm install @getoutbox/sdk` and use the package import shown below. Requires Node.js 20.3+. The release package is `@getoutbox/sdk`. The package is public on npm; downloadable builds remain available here. ``` import { Outbox } from '@getoutbox/sdk'; // Reads OUTBOX_API_KEY; the base URL defaults to https://outboxstack.app. const mail = new Outbox(); // Your application creates and stores an expiring, single-use reset token. // resetUrl and resetRequestId come from that trusted backend flow. const message = await mail.send({ from: 'accounts@your-verified-domain.com', fromName: 'Your app', to: user.email, toName: user.name, replyTo: 'support@your-verified-domain.com', subject: 'Reset your password', text: `Reset your password: ${resetUrl}\nIgnore this if you did not request it.`, }, { idempotencyKey: `password-reset:${resetRequestId}` }); const status = await mail.getMessage(message.id); ``` Generate reset links in your own backend using a fixed trusted application origin. Outbox Stack delivers the message; your app owns token creation, expiry and password changes. Never expose API keys in browser or mobile code, log reset links, or insert unescaped user input into HTML. ## PHP PHP 8.2+. Install the client with Composer and set `OUTBOX_API_KEY` to a **Sending only** key. ``` composer require getoutbox/outbox-php ``` ``` use Outbox\Client; $outbox = new Client(); // reads OUTBOX_API_KEY; base URL defaults to https://outboxstack.app $result = $outbox->send([ 'from' => 'accounts@your-verified-domain.com', 'fromName' => 'Your app', 'to' => 'Ada Obi ', 'replyTo' => 'support@your-verified-domain.com', 'subject' => 'Reset your password', 'text' => 'Use the password-reset link generated by your app.', 'metadata' => ['user_id' => '42'], ], idempotencyKey: "password-reset:{$request->id}"); $result['id']; // message id; returned once queued, not delivered ``` Also: `sendBatch($messages)` (1–100 messages), `getMessage($id)`, `iterateMessages(status: 'bounced', to: '@example.com')` (every page), `cancelMessage($id)` for queued messages, and `addSuppression`, `iterateSuppressions` and `removeSuppression` (full-access key). Timeouts, 429 and 5xx responses are retried with the same idempotency key, so a retry never sends twice. A message must have a subject with `html` or `text`, or a `template`; anything else is rejected before sending. Attachment `content` is raw bytes; the client encodes it. ``` use Outbox\Exception\ApiException; use Outbox\Exception\ConnectionException; use Outbox\Exception\OutboxException; try { $outbox->send($message); } catch (ApiException $e) { $e->status(); // 422 $e->errorCode(); // "domain_not_verified": branch on this $e->requestId(); // quote to support } catch (ConnectionException $e) { $e->idempotencyKey(); // network failure after retries: retry with this key } catch (OutboxException $e) { // invalid message or configuration } ``` Verify webhooks with `Outbox\Webhook::verify($rawBody, $headers, $secret)`. Source and full reference: [github.com/Outbox-Stack/outbox-php](https://github.com/Outbox-Stack/outbox-php). ## Laravel Laravel 11, 12 and 13. A mail driver, so your existing Mailables and notifications send through Outbox Stack unchanged. ``` composer require getoutbox/outbox-laravel ``` ``` // config/mail.php 'mailers' => [ 'outbox' => ['transport' => 'outbox'], ], // .env (a Sending only key from Developers) MAIL_MAILER=outbox OUTBOX_API_KEY=mk_... MAIL_FROM_ADDRESS=hello@your-verified-domain.com ``` Now `Mail::to($user)->send(new InvoicePaid($invoice))` goes through Outbox Stack. Each recipient becomes its own message with its own bounce tracking. Add an `X-Outbox-Idempotency-Key` header to queued Mailables so job retries never send twice, and attach `->metadata('order_id', 42)` to get it back in webhooks. ``` // .env OUTBOX_WEBHOOK_SECRET=whsec_... use Outbox\Laravel\Events\MessageBounced; Event::listen(function (MessageBounced $event) { User::where('email', $event->email())->update(['email_bounced_at' => now()]); }); ``` The package registers `POST /outbox/webhook` once the secret is set, checks signatures and dispatches events such as `MessageDelivered`, `MessageBounced` and `ContactUnsubscribed`. Point a webhook at that URL in Developers. Source and full reference: [github.com/Outbox-Stack/outbox-laravel](https://github.com/Outbox-Stack/outbox-laravel). ## Python Python 3.9+, no dependencies. Install it and set `OUTBOX_API_KEY` to a **Sending only** key. ``` pip install outboxstack ``` ``` from outboxstack import Outbox outbox = Outbox() # reads OUTBOX_API_KEY; base URL defaults to https://outboxstack.app result = outbox.send({ "from": "accounts@your-verified-domain.com", "fromName": "Your app", "to": "Ada Obi ", "replyTo": "support@your-verified-domain.com", "subject": "Reset your password", "text": "Use the password-reset link generated by your app.", "metadata": {"user_id": "42"}, }, idempotency_key=f"password-reset:{request_id}") result["id"] # message id; returned once queued, not delivered ``` Also: `send_batch(messages)` (1–100 messages), `get_message(id)`, `iter_messages(status="bounced")` (every page), `cancel_message(id)`, suppressions, and `verify_webhook(raw_body, headers, secret)`. Errors are `OutboxApiError` (branch on `.code`) and `OutboxConnectionError`. Source and full guide: [Outbox-Stack/outbox-python](https://github.com/Outbox-Stack/outbox-python). ## Go Go 1.21+, no dependencies. Every call takes a `context.Context`. ``` go get github.com/Outbox-Stack/outbox-go ``` ``` import outbox "github.com/Outbox-Stack/outbox-go" client, err := outbox.New(outbox.Options{}) // reads OUTBOX_API_KEY res, err := client.Send(ctx, outbox.Message{ From: "accounts@your-verified-domain.com", FromName: "Your app", To: []string{"Ada Obi "}, ReplyTo: "support@your-verified-domain.com", Subject: "Reset your password", Text: "Use the password-reset link generated by your app.", Metadata: map[string]string{"user_id": "42"}, }, &outbox.SendOptions{IdempotencyKey: "password-reset:" + requestID}) // res.ID is the message id; returned once queued, not delivered ``` Also: `SendBatch`, `GetMessage`, `IterateMessages`, `CancelMessage`, suppressions and `VerifyWebhook`. Errors are `*outbox.APIError` (branch on `Code`) and `*outbox.ConnectionError`, for use with `errors.As`. Source and full guide: [Outbox-Stack/outbox-go](https://github.com/Outbox-Stack/outbox-go). ## Delivery & errors Inspect `GET /v1/messages/:id` or add a webhook in Developers for delivery, bounce and complaint events. Verify every webhook's signature before trusting it. Webhooks use the Standard Webhooks format: `webhook-id`, `webhook-timestamp` and `webhook-signature` headers. With the SDK, pass the raw body: `await verifyWebhook(rawBody, req.headers, secret)` returns the event or throws. List history with `GET /v1/messages` (newest first, up to 200 a page; pass the response's `next` back as `after` for older ones, or use the SDK's `iterateMessages()`). Stop a message that hasn't started sending with `POST /v1/messages/:id/cancel` (`cancelMessage(id)`); cancelling twice is safe. Manage addresses that must never receive mail with `/v1/suppressions` (`addSuppression`, `removeSuppression`, `iterateSuppressions`); these need a full-access key, and only manual suppressions can be removed. Errors return `{"error": "…", "code": "domain_not_verified", "request_id": "req_…"}`. Branch on `code`, show `error`, and quote `request_id` (also in the `X-Request-Id` header) when contacting support. | Response | Action | | --- | --- | | 400 | Fix the request: `invalid_request`, `invalid_address`, `invalid_attachment`, `invalid_header`, `too_many_recipients`. | | 401 / 403 | Check the key: `unauthorized`, `forbidden` (a sending or test key outside /v1/messages), `sender_domain_not_allowed`, `account_restricted`. | | 402 | `quota_exceeded`: check allowance and credits. | | 409 | `not_cancellable`: the message is already sending or finished. `conflict`: a bounce, complaint or unsubscribe can't be removed from suppressions. | | 422 | `domain_not_verified`, `sending_not_configured`, `missing_template_data`, `unsupported_by_provider`. | | 429 / 503 / timeout | Retry with backoff and the same idempotency key. A timeout may follow successful acceptance. `rate_limited` comes with a `Retry-After` header; see [Limits](https://outboxstack.app/docs/#limits). | The SDK retries timeouts, network errors, 429 and 5xx up to twice (`maxRetries`), honouring `Retry-After`. Every send carries an idempotency key, generated when you don't pass one, so a retry never sends twice. Pass your own key to stay safe across process restarts too. Other errors throw `OutboxApiError` with `status`, `code`, `requestId` and the response `body`. ## Webhook events Every event has `type`, `created_at` and `data`. Message events carry `message_id`, `to`, `subject`, `stream` (`transactional` or `marketing`), `campaign_id` (set for campaign email, otherwise null) and your `metadata`. Feedback events add `recipients` and `occurred_at`. Events can arrive more than once and out of order: deduplicate on the `webhook-id` header and don't let an older event overwrite a newer status. | Event | Meaning | | --- | --- | | message.sent | The provider accepted the message. Adds `provider_message_id`. | | message.delivered | The receiving mail server accepted it. Not proof that it reached the inbox rather than spam. | | message.bounced | A hard bounce: the address doesn't exist or permanently refuses mail. Always final. The address is added to your suppressions. `bounce_type` is `hard`, and `suppressed` is `true`. | | message.deferred | Not delivered yet, but not dead either. `reason` is `soft_bounce` (a temporary refusal, such as a full mailbox, with `bounce_type` `soft`) or `delivery_delay` (the provider is still retrying). After 3 soft bounces in a row with no delivery between them, the address is suppressed and `suppressed` is `true`. Don't treat this event as a bounce. | | message.complained | The recipient marked the message as spam. The address is suppressed. | | message.failed | The message will never be sent, for example because the provider refused it, credits ran out, or the provider never confirmed it. `reason` says why. Suppressed recipients don't produce this event: check the message's status. | | message.opened / message.clicked | Open and click tracking, where the provider reports it. Opens are approximate: privacy features open mail automatically. | | contact.subscribed / contact.unsubscribed | Someone joined a list (subscribed carries `list_id`) or unsubscribed. Both carry `contact_id` and `email`. | Bounce and delay events also carry `bounce_subtype` (the provider's category, for example `NoEmail`, `MailboxFull` or `General`) and `diagnostic` (the receiving server's reply, such as `smtp; 550 5.1.1 user unknown`). Either can be null: not every provider reports them. Only managed sending and your own SES report delivery feedback (delivered, deferred, complaint, open and click events, and bounces after sending). Cloudflare reports only bounces it sees while sending, and SMTP and ZeptoMail connections report none yet. ## Test mode For automated tests, CI and staging, create a key in **API keys & SMTP** with access set to **Test**. Test keys start with `mk_test_`. They use the same endpoints and checks as a sending key: validation, templates, sender-domain locks, idempotency and rate limits. But nothing is delivered, nothing is charged, and nothing counts toward your daily limit or reputation. They work before you've set up a provider or verified a domain. The result depends on the recipient's name before the @, on any domain, ignoring a `+tag`: | Recipient | Result | | --- | --- | | bounced@… | `message.sent`, then `message.bounced` with `bounce_type: hard`. Status `bounced`. | | deferred@… | `message.sent`, then `message.deferred` with `reason: soft_bounce`. Status `sent`. | | complained@… | `message.sent`, `message.delivered`, then `message.complained`. Status `complained`. | | anything else | `message.sent`, then `message.delivered`. Status `delivered`. | Addresses already on your suppression list come back as `suppressed`, just as in live mode. Test sends never add to that list, so `suppressed` in test events is always `false`. A send still answers `202` with `queued`; `GET /v1/messages/:id` with the same key shows the outcome straight away, with `test: true`. Test messages are visible only to test keys, aren't in the dashboard log, and are deleted after 30 days. To receive their events, add a webhook with **Receives** set to **Test-key events**. Live and test events never cross over, and every test event has `data.test: true`. Test keys work with the HTTPS API only. ## Limits | Limit | Value | | --- | --- | | API requests | 1,200 a minute per API key, for test keys too. Over that you get `429 rate_limited` with `Retry-After` in seconds. | | Per send | 50 recipients across to, cc and bcc. 15 MB request, attachments included. | | Per batch | 100 messages, 1 MB request. | | Managed daily limit | New managed accounts start at 500 emails a day (UTC). The limit doubles, at most once a day, after a day when you used at least half of it while bounces stayed at or under 2% and complaints at or under 0.05%. It grows to 100,000 a day, and no account may use more than a fifth of our shared daily sending capacity; ask support if you need more sooner. Free accounts, with no plan or credits, can send 150 a day. Email over the limit isn't rejected: it waits in the queue and goes out the next day. Billing shows your current limit. | | Account holds | Once a managed account has sent 500 emails in a week, sending pauses for review if bounces reach 4% or complaints reach 0.08%. Queued email is kept, not dropped. | | Your own SES | Amazon's quota for your account applies instead. A new SES account starts in the sandbox: 200 emails a day, to verified recipients only. | Plan big sends around the daily limit. A newsletter to 5,000 people from a new managed account takes several days of steady, healthy sending to clear. ## SMTP submission **Check availability first.** SMTP is available only when a hostname and port appear in your workspace’s Developers page. Use the HTTPS API while submission is unconfigured. Use the hostname and port shown in Developers. Username: `apikey`. Password: your Outbox Stack API key. Port 587 requires STARTTLS; port 465 uses implicit TLS when enabled by the operator. Verify the server certificate. ``` import nodemailer from 'nodemailer'; const smtp = nodemailer.createTransport({ host: process.env.OUTBOX_SMTP_HOST, port: 587, secure: false, requireTLS: true, auth: { user: 'apikey', pass: process.env.MAIL_API_KEY }, }); await smtp.sendMail({ from: 'accounts@your-verified-domain.com', to: 'customer@example.com', subject: 'Reset your password', text: 'Your trusted application reset link', headers: { 'X-Outbox-Idempotency-Key': 'reset:unique-request-id' }, }); ``` Like the API, SMTP is for transactional messages (see [Send with the API](https://outboxstack.app/docs/#api)). One recipient per submission, up to 1 MiB. Attachments are not supported. Test keys don't work over SMTP. The From header must match the envelope sender. A 250 response means queued, not delivered. Use the same idempotency header when retrying an uncertain submission. ## Choose your connection **HTTPS API:** available from any backend language. **Node/TypeScript SDK:** available as a compiled client with TypeScript source and declarations. **SMTP submission:** implemented with mandatory TLS and API-key authentication. Find the deployed hostname and port in Developers; if not configured yet, use the HTTPS API. Our SMTP provider setting is a separate outbound relay connection. **PHP and Laravel:** `getoutbox/outbox-php` and `getoutbox/outbox-laravel` on Packagist. **Python and Go:** `outboxstack` and `github.com/Outbox-Stack/outbox-go`. **Other languages:** use the HTTPS API directly, or SMTP. To compare these methods and decide who delivers your mail, read [Choose your setup](https://outboxstack.app/docs/choose-setup). You’re ready for your next send.[Go to your workspace ↗](https://outboxstack.app/dashboard/developers) --- Source: https://outboxstack.app/docs/ # Choose your setup. Before your first email goes out, you make three choices. This page explains each one, says when to pick each option, and lists the steps to finish. ## Start here The three choices are separate. Answer them in this order. | Choice | Options | How to decide | | --- | --- | --- | | Who delivers your mail | Managed sending, or your own provider | Pick managed sending unless you already pay for Amazon SES, Cloudflare Email, ZeptoMail or an SMTP server and want to keep it. [Compare the two](https://outboxstack.app/docs/choose-setup/#who-delivers) | | What kind of mail | Transactional, marketing, or both | Transactional mail goes to one person because of something they did. Marketing mail goes to a list. Each kind you send needs a route. [Learn about routes](https://outboxstack.app/docs/choose-setup/#kinds) | | How you connect | HTTPS API, an SDK, SMTP, or the dashboard | Developers use the API or an SDK. Marketers write and send campaigns in the dashboard with no code. [Compare the methods](https://outboxstack.app/docs/choose-setup/#connect) | ## Managed or your own provider With managed sending, Outbox Stack delivers your mail. With your own provider, you connect an account you already have and that provider delivers it. Both need a domain you control and a few domain records. These are DNS entries, such as SPF, DKIM and DMARC, that let inboxes check that your mail really comes from your domain. | Compare | Managed sending | Your own provider | | --- | --- | --- | | Setup effort | Answer a few questions on **Sending providers** about your website, what you send, how people agreed to hear from you and your monthly volume. Then add your domain records. | Enter your provider's keys or server details on **Sending providers**, then route each kind of mail to it. Amazon SES also needs setup in AWS first. Cloudflare Email, ZeptoMail and SMTP servers check your domain in their own dashboard. | | What you need | A domain you control. No provider account. | An account with Amazon SES, Cloudflare Email, ZeptoMail or an SMTP server, and a domain you control. | | Who bills sending | Outbox Stack. A free monthly allowance, then prepaid credits. [See Pricing](https://outboxstack.app/#pricing) | Your provider bills you directly for sending. | | Limits | A new account starts with a daily limit that grows with healthy sending. [See Limits](https://outboxstack.app/docs#limits) | Your provider's own quota applies. A new Amazon SES account starts in the sandbox, which allows 200 emails a day to verified recipients only. | | Best for | First-time senders, and anyone without a provider account. | Teams that already run a provider and want to keep that account and its billing. | **Pick managed sending if** you have no provider account. If you are unsure, pick managed sending. You can connect your own provider later. **Pick your own provider if** you already pay for Amazon SES, Cloudflare Email, ZeptoMail or an SMTP server and want Outbox Stack to send through it. **If you switch later**Your contacts, lists, unsubscribes, suppressions, campaigns and message history belong to your workspace, not to a provider, so they stay. Switching does not move your routes. On **Sending providers**, choose **Use for transactional email** and **Use for marketing email** on the new provider. A domain belongs to the provider you added it for, so remove it on **Domains** and add it again for the new provider. ## Transactional or marketing Transactional mail is one message your app sends because a person did something, such as a password reset, a receipt or a sign-in code. Marketing mail is one message sent to a list, such as a newsletter or an announcement. A route connects one kind of mail to one provider. You set each route on its own, on **Sending providers**. Managed sending routes both kinds for you when you set it up, unless a kind already has a route. Your own provider gets no route until you choose **Use for transactional email** or **Use for marketing email** on its card. | Provider | Transactional | Marketing | | --- | --- | --- | | Managed sending | Yes | Yes | | Amazon SES | Yes | Yes | | SMTP server | Yes | Yes | | Cloudflare Email | Yes, in beta | No | | ZeptoMail | Yes | No | A kind with no route cannot send. The API refuses transactional mail with `422 sending_not_configured`, and campaigns need a marketing route before they can go out. **Sending providers says "No provider for transactional email"**You connected a provider but did not route mail to it. Open **Sending providers**, find the provider's card and choose **Use for transactional email**. If you send campaigns, also choose **Use for marketing email** on a provider that can carry marketing mail. The warning goes away when each kind has a route. ## How your app connects Pick the method that matches your code. If you write no code, use campaigns in the dashboard. | Method | Use it when | Guide | | --- | --- | --- | | HTTPS API | Your backend is in any language. | [Send with the API](https://outboxstack.app/docs#api) | | Node.js SDK | Your backend runs Node.js 20.3+ or TypeScript. | [Read the Node.js guide](https://outboxstack.app/docs#sdk) | | PHP | Your backend runs PHP 8.2+. | [Read the PHP guide](https://outboxstack.app/docs#php) | | Laravel | Your app runs Laravel 11+. | [Read the Laravel guide](https://outboxstack.app/docs#laravel) | | Python | Your backend runs Python 3.9+. | [Read the Python guide](https://outboxstack.app/docs#python) | | Go | Your backend runs Go 1.21+. | [Read the Go guide](https://outboxstack.app/docs#go) | | SMTP | Your app or tool can send only over SMTP. One recipient per message, no attachments, and test keys do not work. | [Read the SMTP guide](https://outboxstack.app/docs#smtp) | | Campaigns | You send newsletters to a list and write no code. | [Read the newsletter guide](https://outboxstack.app/docs/send-newsletters) | SMTP is available only when a hostname and port appear on your **Developer tools** page. Until then, use the HTTPS API. The API, the SDKs and SMTP carry transactional mail. Send marketing mail as a campaign, which adds the unsubscribe link and skips unsubscribed contacts. WhatsApp is separate from email. [Read how WhatsApp works](https://outboxstack.app/whatsapp). ## Pick your path Find the path that matches you. Each one ends with a check that proves it worked. Want every step in plain words? Read [Send app emails](https://outboxstack.app/docs/send-app-email), [Send newsletters](https://outboxstack.app/docs/send-newsletters), [Automate follow-ups](https://outboxstack.app/docs/automations) or [Set up WhatsApp](https://outboxstack.app/docs/whatsapp-setup). ### A. Developer, managed sending 1. Open **Sending providers**, choose **Set up managed sending** and answer the questions. **Billing** then shows your account status and daily limit. 2. Open **Domains**, add a domain you control and add the records it shows at your DNS host. Choose **Check now** until the domain shows Ready to send. 3. Open **API keys & SMTP** and create a key with **Sending only** access. Store it in your backend's secret manager. 4. Send one email to yourself with the API or an SDK, from an address at your verified domain. **Check.** The message shows as delivered on **Email activity**. ### B. Developer, your own Amazon SES 1. In AWS, pick the region where your domain is verified and production access is on. Create an IAM user allowed `ses:SendEmail` and `ses:GetAccount`, and a configuration set. 2. Open **Sending providers**, choose **Connect your own provider**, pick Amazon SES, enter the region, configuration set and keys, and choose **Add provider**. 3. Copy the HTTPS URL that appears. In AWS, create an SNS topic, add it as an event destination on your configuration set, and subscribe the URL to the topic. Without this, mail still sends but Outbox Stack never sees its bounces and complaints. 4. On the provider's card, choose **Check connection**. It shows whether the account is still in the sandbox and its daily quota. 5. Choose **Use for transactional email**, and **Use for marketing email** if you will send campaigns. 6. Follow steps 2 to 4 of path A. **Check.** Your provider's card shows **Sends transactional email** and the message shows as delivered on **Email activity**. ### C. Marketer sending newsletters 1. Open **Sending providers** and set up managed sending. To use your own provider instead, connect Amazon SES or an SMTP server and choose **Use for marketing email**. 2. Open **Domains** and verify the domain you send from. 3. Open **Audience** and import a CSV of people who agreed to hear from you. 4. Open **Campaigns**, create a campaign, choose a layout, save a draft and send yourself a test. **Check.** The test arrives in your inbox. On managed sending, a large list goes out over several days at first. [See Limits](https://outboxstack.app/docs#limits). ### D. Both app email and newsletters 1. Set up managed sending, which routes both kinds. With your own provider, route each kind. Cloudflare Email and ZeptoMail carry only transactional mail, so route marketing to managed sending, Amazon SES or an SMTP server. 2. Follow steps 2 to 4 of path A for your app. 3. Follow steps 3 and 4 of path C for your newsletters. **Check.** **Sending providers** shows **Sends transactional email** and **Sends marketing email**, with no warning above the cards. ## How to tell you are set up The **Overview** page in the dashboard has a setup checklist. The table shows when each step counts as done. | Checklist step | Done when | | --- | --- | | Choose how you send | You set up managed sending or added a provider. | | Verify your sending domain | A domain shows Ready to send on **Domains**. | | Connect your app | Your workspace has an API key that is not revoked. | | Send a test email | A message shows on **Email activity**. | | Add your audience | A list has at least one contact. | | Create your first campaign | You saved a campaign. | Adding a provider marks the first step done, but it does not route mail. Open **Sending providers**. If you see a "No provider for" warning, fix it as described in [Transactional or marketing](https://outboxstack.app/docs/choose-setup/#kinds). Outbox Stack counts a workspace as having no sending setup until you set up managed sending or route transactional mail to your own provider. To build before any of this is ready, create a test key on **API keys & SMTP** with **Access** set to **Test: sends nothing**. Test keys accept mail and deliver nothing, and they work before you set up a provider or verify a domain. [Read about test mode](https://outboxstack.app/docs#test-mode). ## Still stuck Start with the [developer docs](https://outboxstack.app/docs). If something looks broken, check the [status page](https://outboxstack.app/status). For anything else, email [support@outboxstack.app](mailto:support@outboxstack.app). Ready to choose?[Open Sending providers](https://outboxstack.app/dashboard/providers) --- Source: https://outboxstack.app/docs/choose-setup/ # Send app emails. Your app sends emails like receipts and password resets. This page shows how to set that up in Outbox Stack, one step at a time. You do not need to be a developer for most of it. ## What an app email is An app email is one message your app sends to one person because that person did something. People in email call this transactional email. Some examples are below. | Email | What caused it | | --- | --- | | Receipt | A customer paid you. | | Password reset | Someone asked to reset their password. | | Sign-in code | Someone tried to sign in. | | Alert | Something happened in an account, such as a new login or a failed payment. | Your app sends these through the Outbox Stack API. An API is a way for one program to talk to another, so your app asks Outbox Stack to send the email and Outbox Stack delivers it. **Not for newsletters**A newsletter or an announcement goes to a whole list of people at once. That is marketing email, and it needs an unsubscribe link and other protections. Do not send it through the API. [Read how to send newsletters](https://outboxstack.app/docs/send-newsletters). ## Before you start Check that you have these before you begin. | You need | Why | | --- | --- | | A verified account | You signed up and clicked the link in the email we sent you. You also need the admin role in your workspace to set up sending and create keys. | | A domain you control | A domain is the part of an address after the @, such as yourcompany.com. Your emails come from an address at this domain. | | Access to its DNS | DNS is the public settings list for your domain. You add a few lines to it, called records. You change them where you bought the domain or where it is hosted, such as Cloudflare, Namecheap or GoDaddy. If someone else manages it, you can send them the records. | | 15 to 30 minutes | Most of that time is waiting for your domain records to be found. | **No domain yet?** Your developer can still build and test. A test key accepts emails, checks them and records them, but delivers nothing. It works before you set up sending or add a domain. [Read about test mode](https://outboxstack.app/docs#test-mode). With managed sending, you can also send a test from our sandbox address while your domain is not ready. The sandbox address only sends to people in your workspace, and at most 50 emails a day. ## Set it up step by step Each step names the page to open in the dashboard sidebar. Each step ends with a check that shows it worked. 1. **Choose who delivers your email.** Open **Sending providers**. A provider is the service that delivers your email. If you have no email provider account, choose **Set up managed sending**, answer the questions and choose **Turn on managed sending**. If you already pay for Amazon SES, Cloudflare Email, ZeptoMail or an SMTP server, choose **Connect your own provider** instead, then choose **Use for transactional email** on its card. Not sure? [Read how to choose](https://outboxstack.app/docs/choose-setup#who-delivers). **How you know it worked.** The provider's card shows **Sends transactional email**, and no warning about a missing provider for transactional email shows above the cards. 2. **Add and verify your domain.** Open **Domains**, choose **Add a domain**, type your domain and choose **Get my DNS records**. Add each record it shows at your DNS host. The next section explains them. Then choose **Check now**. The page also checks by itself every few seconds while it is open. If someone else runs your DNS, choose **Copy instructions for your IT person** and send them the text. **How you know it worked.** The domain's status shows **Ready to send** and the page says you can send from any address at your domain. 3. **Create a key for your app.** Open **API keys & SMTP**. An API key is a long secret password that lets your app send email from your workspace. Under **Create an API key**, give it a name such as Production server, set **Access** to **Sending only (recommended)** and choose **Create key**. A sending only key can send and read messages, nothing else, so a leaked key does less harm. The key is shown once. Copy it straight into a safe place your developer can reach, such as a password manager. **How you know it worked.** The key appears under **Your keys** with access **Sending**. 4. **Send a test.** Open **Email activity** and choose **Send a test email**. Send it to your own address, from an address at your verified domain, then choose **Send test email**. **How you know it worked.** The email arrives in your inbox, and its row on **Email activity** shows **Delivered**. With Cloudflare Email, ZeptoMail or an SMTP server, you verify your domain in that provider's own dashboard, not on **Domains**. Follow your provider's steps, then carry on from step 3. **How to tell setup is done**The **Overview** page has a setup checklist. For app email, four steps matter. They are **Choose how you send**, **Verify your sending domain**, **Connect your app** and **Send a test email**. When all four are ticked, you are ready. [See when each step counts as done](https://outboxstack.app/docs/choose-setup#ready). ## Your domain records, explained Anyone can put any address in the From line of an email. Inboxes like Gmail and Outlook check your domain's records to decide if an email really came from you. Without them, your emails land in spam or get refused. The domain page groups your records under the headings below. | Heading on the page | Record type | What it does | | --- | --- | --- | | Account ownership | TXT | Proves the domain belongs to you. Shown for managed sending only. A TXT record is a line of plain text stored on your domain. | | Domain verification | TXT or CNAME | Sets up DKIM. DKIM adds a signature to each email so inboxes can tell it came from you and was not changed on the way. Keep these records for as long as you send through Outbox Stack. | | Bounce handling · SPF | MX and TXT | Recommended. A bounce is an email that could not be delivered. These records send bounce reports back through a bounce address on your domain. The TXT record is SPF, a list of who may send email for that address. Both sit on a subdomain such as bounce.yourcompany.com. | | DMARC policy | TXT | DMARC tells inboxes what to do with an email that fails the checks above. If you already have a valid DMARC record, keep it. | Copy each record's **Name / Host** and **Value** with the copy buttons. In most DNS panels you type only the Name/Host part, and the panel adds your domain itself. ### Where to add them - **Cloudflare.** The domain page may offer to add the records for you. If you add them by hand, open your domain's DNS records page and set every CNAME record to DNS only, the grey cloud, not proxied. - **Namecheap.** Open Domain List, choose Manage next to your domain, then add the records on the Advanced DNS tab. - **GoDaddy.** Open your domain's DNS page from your list of domains, then add each record. - **Amazon Route 53.** Open Hosted zones, choose your domain, then choose Create record for each one. New records can take a few minutes to show up, and now and then longer. If a record shows **Not found yet**, wait and choose **Check now** again. If it shows **Different value** or **Added under the wrong name**, compare it with the page and fix it at your DNS host. **Keep your MX records**Your MX records tell the internet where to deliver email sent to you. Do not delete or change them. Outbox Stack only sends email. The one MX record it asks for sits on the bounce subdomain, so it does not touch your inbox. ## Hand this to your developer Send your developer this page and the sending only key from step 3. These are the exact steps. 1. Store the key as a secret on your server, never in code. Set `MAIL_BASE_URL` to `https://outboxstack.app` and `MAIL_API_KEY` to the key. 2. Send one email from the command line. Replace both addresses with a sender at your verified domain and a real test recipient. ``` curl "$MAIL_BASE_URL/v1/messages" \ -H "Authorization: Bearer $MAIL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: reset-request-unique-id" \ --data '{ "from": "accounts@your-verified-domain.com", "fromName": "Your app", "to": "customer@example.com", "toName": "Ada Obi", "replyTo": "support@your-verified-domain.com", "subject": "Reset your password", "text": "Use the password-reset link generated by your app." }' ``` 3. Expect HTTP 202 with `"status":"queued"`. Queued means accepted, not yet delivered. [Read the full API guide](https://outboxstack.app/docs#api). 4. Move the call into your backend with the API or an SDK. Guides cover [Node.js](https://outboxstack.app/docs#sdk), [PHP](https://outboxstack.app/docs#php), [Laravel](https://outboxstack.app/docs#laravel), [Python](https://outboxstack.app/docs#python) and [Go](https://outboxstack.app/docs#go). Any other language can use the API directly. 5. Give each email an idempotency key built from the event that caused it, such as the reset request id. A retry with the same key never sends twice. 6. Track delivery, bounces and complaints with webhooks. [Read Delivery & errors](https://outboxstack.app/docs#delivery). 7. Use a test key in automated tests and staging. [Read about test mode](https://outboxstack.app/docs#test-mode) and the [limits](https://outboxstack.app/docs#limits). **Keep the key on the server**Never put the API key in a website, browser code or a mobile app. Anyone can read code that runs on their own device, and a stolen key can send email as you. Your app's browser or phone code should ask your own server to send the email, and only the server talks to Outbox Stack. If a key leaks, revoke it on **API keys & SMTP** and create a new one. ## When something goes wrong When the API refuses an email, it replies with an error. The `code` field names the problem and the `error` field explains it in words. Find the code below. | Code or symptom | Cause | Fix | | --- | --- | --- | | 401 unauthorized | The key is missing, mistyped or revoked. The error says "invalid API key" or "sign in or send an API key". | Check the header reads `Authorization: Bearer` followed by the key. If in doubt, create a new key on **API keys & SMTP**. | | 422 sending\_not\_configured | Nothing is set up to deliver app email. | Open **Sending providers**. Set up managed sending, or choose **Use for transactional email** on your provider's card. | | 422 domain\_not\_verified | The From address uses a domain that is not added to this workspace, or is not verified yet. | Open **Domains**, add the domain or fix its records, and choose **Check now**. If the error says the domain is still being verified, wait a few minutes and try again. | | 403 sender\_domain\_not\_allowed | The key is locked to a different domain than the From address. | Send from the domain the key allows, or create a key with **Send from** set to **Any of your domains**. | | 422 sandbox\_recipient\_not\_allowed | The email comes from the sandbox address and goes to someone outside your workspace. | Verify your own domain and send from it. | | 429 sandbox\_limit\_reached | The sandbox address sent 50 emails today. | Verify your own domain and send from it. | | 429 rate\_limited | More than 1,200 requests a minute with one key. | Wait for the seconds in the `Retry-After` header, then retry with the same idempotency key. | | 402 quota\_exceeded | This month's included emails and credits are used up. | Buy credits or choose a plan on **Billing**. | | 403 account\_restricted | Sending on your account is suspended. | Read the reason in the error, then email support. | | 400 missing\_content | The email has no subject with text or html, and no template. | Add a subject and a body. | | 400 invalid\_address | The to or from field is not an email address. | Check both addresses. | | Message shows Bounced | The receiving inbox refused it. The address may not exist or the inbox may be full. Outbox Stack adds hard bounces to your suppressed addresses. | Open the message on **Email activity** to read the reason. Ask the person for a correct address. | | Message shows Suppressed | The address bounced before, marked your mail as spam, unsubscribed, or was added by hand. Outbox Stack does not send to it, to protect your reputation. | Open **Audience** and find it under **Suppressed addresses**. The reason column says why. Bounces, spam complaints and unsubscribes stay blocked. Only an address you added by hand can be removed. | Every error also carries a `request_id`. Include it when you email support. ## Still stuck If something looks broken for everyone, check the [status page](https://outboxstack.app/status). For anything else, email [support@outboxstack.app](mailto:support@outboxstack.app) with your workspace name and any `request_id` you saw. Ready to start?[Open Sending providers](https://outboxstack.app/dashboard/providers) --- Source: https://outboxstack.app/docs/send-app-email/ # Send newsletters and campaigns. This guide takes you from a new account to your first newsletter. You write no code. Every step ends with a way to tell that it worked. ## What a campaign is A campaign is one email you write once and send to many people at the same time. Newsletters, sale announcements and event invitations are all campaigns. People call this marketing email. App email is different. Your website or app sends it to one person because they did something, such as a receipt or a password reset. A developer usually sets that up. [Read the app email guide](https://outboxstack.app/docs/send-app-email). Want emails that go out on their own, such as a welcome email when someone joins your list? Those are automations. [Read the automations guide](https://outboxstack.app/docs/automations). ## Before you start | You need | Why | | --- | --- | | A domain you own, such as yourshop.com | Your emails come from an address at this domain, like news@yourshop.com. Inboxes trust mail more when it comes from a domain that has proved who owns it. | | Access to where your domain is managed | This is usually the company you bought the domain from, or Cloudflare. You will add a few settings there. If someone else manages it, the dashboard gives you instructions to send them. | | People who agreed to hear from you | A spreadsheet of customers or subscribers who said yes to your emails. If you have nobody yet, you can collect people with a signup form. | | The admin role in your workspace | Only admins can set up sending, add a domain and change the brand kit. If you are not an admin, ask the person who invited you. | | 30 to 60 minutes | Most of it is waiting for your domain settings to take effect. | **No domain yet?** Buy one from a domain seller. The company that hosts your website often sells them too. You can write and save a campaign draft while you wait, but you cannot send it until your domain is verified. Not sure this is the right path? [Compare all the setup paths](https://outboxstack.app/docs/choose-setup). ## Set up and send Do these steps in order. Each one finishes in a few minutes, except the wait for your domain. ### Step 1. Choose how your email is delivered Someone has to deliver your email to inboxes. With managed sending, Outbox Stack does it for you. You need no other account. Pick this if you are unsure. 1. In the dashboard, open **Sending providers** and choose **Set up managed sending**. 2. Fill in **Your website**, **What will you send?**, **How did people agree to hear from you?** and **Emails per month**. 3. Tick the box that says you will only send to people who agreed, then choose **Turn on managed sending**. Managed sending carries your marketing email automatically. If you already pay for Amazon SES or an SMTP server, you can use it instead. Connect it on **Sending providers** and choose **Use for marketing email** on its card. Cloudflare Email and ZeptoMail cannot send campaigns. [Compare the options](https://outboxstack.app/docs/choose-setup#who-delivers). **How you know it worked.** A message says "Managed sending is on. Next, add the domain you'll send from." and the dashboard takes you to **Add a domain**. On **Sending providers**, the provider shows **Sends marketing email**. ### Step 2. Verify your sending domain Your sending domain is the part after the @ in the address your emails come from. Verifying it proves to Gmail, Outlook and other inboxes that you own it. Without this, your email would land in spam or not arrive at all. To verify it, you add DNS records. A DNS record is one line of settings stored where your domain is managed. It tells the internet something about your domain, such as who may send email for it. You copy each line from the dashboard and paste it into your domain settings. 1. Open **Domains** and choose **Add a domain**. 2. Type your domain in **Your domain** and choose **Get my DNS records**. 3. Log in where your domain is managed, open its DNS settings, and add each record. Copy the name and value with the copy buttons so nothing is mistyped. 4. If your domain uses Cloudflare, the page can add the records for you. Choose **Continue to Cloudflare** or **Auto configure** if you see either one. 5. If someone else manages your domain, choose **Copy instructions for your IT person** and send them the text. Leave the page open. It checks every few seconds and each record turns from **Not found yet** to **Found**. You can also choose **Check now**. New records can take a while to appear, so a short wait is normal. **How you know it worked.** A green box says **You can send from anything@yourdomain**, and the domain shows Verified on **Domains**. ### Step 3. Set your brand kit The brand kit holds your logo, colours, font, button style, social links and email footer. Every email you make in the designer uses it, so you set it once. 1. Open **Brand kit**. Choose **Upload logo** and pick your colours. 2. Under **Footer**, fill in **Postal address**. Anti-spam laws require a postal address in marketing email. Add a **Footer note** that reminds people why they get your email. It reduces spam reports. 3. Choose **Save brand kit**. **How you know it worked.** The preview beside the form shows your logo and colours. When you start a campaign, the layouts appear in your brand. ### Step 4. Add the people you will email A list is a named group of contacts, such as "Newsletter subscribers". Each campaign goes to one list. A contact is one person's email address, with their name if you have it. 1. Open **Audience**, type a name under **Lists** and choose **Create list**. The new list opens. 2. Open **Import CSV**. A CSV is a spreadsheet saved in a simple format. In Excel or Google Sheets, use **Save as** or **Download** and pick CSV. The first row must have a column called **email**. A **name** column is optional. Other columns, like city, are kept too. 3. Choose the file. Fill in **Where did these people sign up?**, for example "Checkout on our website". This is stored as proof that each person agreed. 4. Tick **Everyone on this list agreed to receive email from us.** and choose **Import contacts**. The import skips addresses that are mistyped, repeated, on domains that cannot receive email, throwaway inboxes and shared inboxes like info@. People who unsubscribed before stay unsubscribed. **No list yet?** Collect people with a signup form. On the list page, open **Signup form** and tick **Accept signups from a form on your website**. Also tick **Ask new subscribers to confirm by email (double opt-in, recommended)**. Double opt-in means each person gets an email and must click to confirm before they join. It keeps fake and mistyped addresses off your list. Fill in **Send confirmations from** with an address at your verified domain, then choose **Save form settings**. You then get a signup page with its own link. Share it, or choose **Copy link** and put it on your website or social profiles. To add a single person, open **Add one contact**. A segment is a smaller group inside a list, picked by what you know about people, such as their city or whether they opened recent emails. Segments are optional. You make them under **Segments** on **Audience**. **Never buy or borrow a list**Only email people who asked to hear from you. Bought, scraped or very old lists are full of dead addresses and people who will mark you as spam. Outbox Stack refuses an import when too many addresses cannot receive email, pauses a campaign that bounces too much, and can put your account on hold. Buying or scraping lists gets accounts closed. **How you know it worked.** A green box says **Imported** with the number of contacts, and the list shows them under **Contacts**. With a signup form, people waiting to confirm show as "waiting to confirm" under the list name. ### Step 5. Write your campaign 1. Open **Campaigns** and choose **New campaign**. 2. Pick a layout under **Choose a starting point**. A layout is a ready-made design you fill in. The five layouts are **Newsletter**, **Announcement**, **Event invitation**, **Offer** and **Plain letter**. Everything in it can be changed. 3. Under **Audience and sender**, pick your list in **Send to**. Leave **Only people in** on **Everyone on the list**, or pick a segment. The page shows how many people it will reach. 4. Fill in **Campaign name**, which only you see. Check **From address**, **Sender name** and **Subject**. The from address must be at your verified domain. 5. Write your message in the designer. The footer with your postal address and an unsubscribe link is added for you. 6. Choose **Save draft**. A draft sends nothing. An unsubscribe link lets anyone stop your emails with one click. Marketing email must have one, and Outbox Stack will not send a campaign without it. When someone unsubscribes, they get no more campaigns from your workspace. The **Templates** page is for app email. A template there is a saved email that an app fills in and sends to one person. Campaigns do not use it. They start from a layout instead. **How you know it worked.** A message says "Draft saved." and the campaign page opens with a **Review and send** box. ### Step 6. Send yourself a test 1. In **Review and send**, find **Send a test to**. It is filled in with your own address. Choose **Send test**. 2. Open the email on your computer and on your phone. The subject starts with \[Test\]. Check these things in the test: - The sender name and subject read well in your inbox list. - Every link and button opens the right page. - Images load and the text is easy to read on a small screen. - The footer shows your postal address and an unsubscribe link. To change anything, choose **Edit**, save, and send another test. **How you know it worked.** The test arrives, and the **Test email** row in **Review and send** turns to a tick with "Sent to" your address. ### Step 7. Send now or schedule The **Review and send** box checks **Audience**, **Sender**, **Subject**, **Content** and **Test email**. A tick means ready. An exclamation mark means worth a look. A cross means it must be fixed before you can send, and each one says how. - To send straight away, choose **Send now**, then confirm with the button that names how many people it goes to. - To send later, pick a date and time under **Or schedule it** and choose **Schedule**. The time is in your own time zone. To change your mind, choose **Unschedule**. Nothing is sent. While it sends, you can choose **Pause** and later **Resume**, or **Cancel campaign**. Emails already handed over for delivery cannot be called back. **How you know it worked.** The campaign shows **Sending** with a progress bar, then moves to the **Sent** tab on **Campaigns** when it finishes. ## After you send Open the campaign to see its **Results**. Each number is a share of the emails that went out. | Number | What it means | What to do | | --- | --- | --- | | Delivered | The email reached the person's email service. | Nothing. High is good. | | Opened | People who opened it. This is approximate. Apple Mail opens emails for privacy, so some people count as opened without reading. | Use it to compare subject lines over time, not as an exact count. | | Clicked | People who clicked a link. This is the most reliable sign of interest. | See which links worked under **Links people clicked**. | | Unsubscribed | People who used the unsubscribe link. They get no more campaigns from you. The number turns amber at 1%. | A few is normal. If it is high, send less often or make the email more useful. | | Bounced | A bounce is an email that came back because the address does not exist or the inbox refused it. Amber at 2%. The campaign pauses at 5%. | Bounced addresses are blocked from future email automatically. A high rate means the list is old or has typos. | | Spam reports | People who pressed "Report spam". The campaign pauses at 0.1%, which is 1 in 1,000. | Make sure everyone on the list agreed to hear from you, and remind them why in the footer. | Below the numbers, **Recipients** lists every person with filters such as **Opened**, **Didn't open** and **Bounced**. **By mailbox provider** shows results for Gmail, Yahoo and others, where a problem with one of them shows first. Outbox Stack blocks addresses that bounce, report spam or unsubscribe. They appear under **Suppressed addresses** on **Audience**. A suppressed address gets no more email, even if it is still on a list. Only addresses you added there by hand can be removed. An inbox that is only full or busy is blocked after three such bounces in a row. Outbox Stack also skips an address that a receiving server recently said doesn't exist, even if that happened to another sender, so it never counts against you. On managed sending, an address nobody has delivered to before is checked by Amazon just before sending. If it very likely doesn't exist, it's held back instead of bouncing, isn't charged and shows as **Probably doesn't exist**. If you know the address is right, choose **Send anyway** next to it under **Suppressed addresses**. A list counts everyone on it, and also says how many of them can't receive email. To tidy it, open the list and choose **Remove them from this list**. To take one person off, choose **Remove** on their row. To erase someone from every list, for example when they ask you to delete their data, choose **Edit**, then **Delete contact**. Removed and deleted addresses stay blocked, so importing them again won't email them. ## Why big lists take days at first Email services trust a new sender slowly. If a new account sends thousands of emails on day one, Gmail and others may send them all to spam. So on managed sending, a new account starts with a daily limit of 500 emails. The limit doubles, at most once a day, while your emails rarely bounce or get reported as spam. This is called warm-up. - Email over the daily limit is not lost. It waits and goes out after the limit resets at midnight UTC. A list of a few thousand people can take several days at first. - The daily limit counts all email from your account that day, app email included. - For a list of 1,000 or more, the first 200 people get the email first. If few bounce or report spam, everyone else follows about 10 minutes later. A bad list stops early instead of reaching everyone. - Once 100 emails have gone out, a campaign pauses by itself if 5% bounce or 0.1% report spam. After you resume, the check starts again from the emails sent next. - Each month includes free emails. After that you need credits or a plan from **Billing**, which also shows your current daily limit. - Free accounts, with no plan or credits, can send 150 emails a day and campaigns to up to 1,000 people, and their campaign and automation emails carry a small "Sent free with Outbox Stack" line at the bottom. Buying credits or a plan removes all three. With your own Amazon SES account, Amazon's own daily limit applies instead. [See all limits](https://outboxstack.app/docs#limits). ## Good habits - **A clear subject.** Say what is inside in a few words. Avoid all capitals and lots of exclamation marks. - **A from name people know.** Use your shop or brand name, the same every time. - **One goal per email.** Give people one main thing to do, with one clear button. - **An easy unsubscribe.** Keep the link visible. Someone who cannot find it presses "Report spam" instead, which hurts you more. - **A clean list.** Only add people who agreed. Use double opt-in on signup forms. Never import a list you bought. - **Always test first.** Send yourself a test and open it on your phone before every campaign. ## When something goes wrong | What you see | Why | How to fix it | | --- | --- | --- | | "Nothing is set up to send marketing email yet; choose how you send under Providers." | No delivery service carries your marketing email. | Do [step 1](https://outboxstack.app/docs/send-newsletters/#step-1). With your own provider, choose **Use for marketing email** on its card. | | "No provider for marketing email" on **Sending providers** | Same cause. A provider is connected, but nothing carries marketing email. | Choose **Use for marketing email** on managed sending, Amazon SES or an SMTP server. | | A cross on **Sender** with a link to verify your domain | The from address is not at a verified domain. | Finish [step 2](https://outboxstack.app/docs/send-newsletters/#step-2), or choose **Edit** and use an address at your verified domain. | | A cross on **Audience** that says nobody on the list can receive it | The list is empty, or everyone on it has unsubscribed or is suppressed. | Add contacts on **Audience**, or edit the campaign and pick another list or segment. | | "There's no unsubscribe link, which marketing email must have." | The link was removed while editing the email's HTML. | Choose **Edit**. Under **Add an unsubscribe link**, choose **Insert link**, then save. | | An import error saying many addresses "can't receive email" | More than a quarter of the file is mistyped, on dead domains or throwaway inboxes. That usually means the list is old or was not collected with permission. | Remove the bad addresses and import again. If the list was bought, do not use it. | | "CSV needs an 'email' column." | The first row of the file has no column named email. | Rename the email column heading to email, save as CSV again and re-import. | | "CSV files can be up to 20 MB. Split larger lists into several imports." | The file is too large. | Split it into smaller files and import each one into the same list. | | "This needs … emails but only … are left this month; buy credits or choose a plan on the Billing page." | Your list is bigger than the emails left in your monthly allowance and credits. | Buy credits or pick a plan on **Billing**, then send again. | | "Free accounts can send a campaign to up to 1,000 people, and this audience has …" | Your account has no plan or credits, and the list or segment is bigger than the free limit. | Buy credits or pick a plan on **Billing**, or send to a smaller segment. | | "You've reached today's limit of … emails. The rest go out after it resets at midnight UTC." | Warm-up. Your daily limit is used up for today. | Nothing. The rest goes out by itself. [Read about warm-up](https://outboxstack.app/docs/send-newsletters/#warm-up-and-limits). | | A red **Paused for you** box saying too many messages bounced (limit 5%) | The list has old or mistyped addresses. | Bounced addresses are already blocked. Open the list on **Audience**, choose **Remove them from this list**, take off anyone else you're unsure of, then choose **Resume**. Only emails sent after you resume count toward the 5%. | | A red **Paused for you** box saying people marked it as spam (limit 0.1%) | Some people on the list did not expect your email. | Check that everyone agreed to hear from you before you choose **Resume**. | | "Your account is on hold for review. Emails wait until it's reviewed." | Too many bounces or spam reports across your recent email. | Email [support@outboxstack.app](mailto:support@outboxstack.app). Waiting emails are kept, not dropped. | | "Amazon SES daily limit" in **Review and send** | Your own Amazon SES account cannot send to the whole list in 24 hours. | Send anyway and choose **Resume** after the limit resets, or ask AWS for a higher limit. | | An error asking for a verified sender when you save form settings | Double opt-in is on, but no address is set to send the confirmation email. | Fill in **Send confirmations from** with an address at your verified domain. | | "Managed sending is temporarily unavailable; try again shortly or contact support@outboxstack.app." | A problem on our side. | Wait a few minutes and try again. Check the [status page](https://outboxstack.app/status). | ## Still stuck If something looks broken, check the [status page](https://outboxstack.app/status). For anything else, email [support@outboxstack.app](mailto:support@outboxstack.app) and tell us the campaign name and what you see. Also sending WhatsApp messages? [Read the WhatsApp setup guide](https://outboxstack.app/docs/whatsapp-setup). Ready for step 1?[Open Sending providers](https://outboxstack.app/dashboard/providers) --- Source: https://outboxstack.app/docs/send-newsletters/ # Automate follow-up emails. An automation sends a series of emails on its own after someone joins a list. You write the emails once, choose how long to wait between them, and turn it on. This page shows how, with three examples you can copy. ## What an automation is An automation is a series of up to 20 emails. It starts for one person at the moment they join a list. Each email has a wait before it, such as 3 days. An email can also have a condition, so it goes only to people who match it. A campaign is different. A campaign goes to a whole list once, when you send it. An automation goes to each person on their own schedule, counted from the day they joined. [Read how to send newsletters](https://outboxstack.app/docs/send-newsletters). | Part | What it does | Where you set it | | --- | --- | --- | | The list | Joining this list starts the automation for that person. | **Starts when someone joins** | | The emails | Each email has a subject and content. You design it or write HTML. | **The sequence**, one card per email | | The waits | How long to wait before each email. The first wait counts from joining. Each later wait counts from the email before it. | The menu above each email | | The conditions | Optional. An email goes only to people who match its rules. | **Only send to some people** | | WhatsApp messages | Optional. A step can send an approved WhatsApp template instead of an email, filled in from the person's name, email or merge fields. | **Add a WhatsApp message** | WhatsApp steps need a connected WhatsApp number. People without a WhatsApp number or WhatsApp consent skip those steps and still get the emails. [Read how to send WhatsApp messages automatically](https://outboxstack.app/docs/whatsapp-setup#automatic). ## Before you start You need four things in place. The automation cannot send without the first three. | You need | Why | How you know it is ready | | --- | --- | --- | | A route for marketing email | Automation emails are marketing email. Turning an automation on is refused until a provider carries your marketing email. | On **Sending providers**, a card shows **Sends marketing email**. [Learn about routes](https://outboxstack.app/docs/choose-setup#kinds) | | A verified domain | You send from an address at your own domain. Mail from a domain that is not verified does not go out. Turning an automation on does not check this, so check it yourself. | The domain shows Verified on **Domains**. | | A list | Every automation starts from one list. | The list appears on **Audience**. | | A way for people to join | Only people who join after the automation is on receive it. | The list has a **Signup form**, you add people with **Add one contact**, or your app adds them. | Any team member can build an automation. Only admins can change the sending rules described below. If you have not set up sending yet, start with [Choose your setup](https://outboxstack.app/docs/choose-setup). ## How it works Each person moves through the emails on their own. For every email, the same four things happen in order. 1. **Join.** The person joins the list while the automation is on. They start at email 1. 2. **Wait.** The wait before the email runs out. The longest wait you can pick is 14 days. 3. **Check.** If the email has a condition, the person is checked against it now, when the email is due. Not when they joined. 4. **Send.** If they match, or there is no condition, the email goes out. The wait for the next email starts. When a person does not match a condition, you choose what happens. Pick one of these on the email's condition. | Choice | What happens to people who do not match | Use it when | | --- | --- | --- | | **Others skip this email** | They miss this one email and move on to the next. The wait for the next email starts from when the skipped one was due. | The email is extra and the rest of the series still fits them. | | **Others leave the automation** | They receive no more emails from this automation. | The rest of the series no longer fits them, for example after they bought. | ### What stops a person early Before each email, Outbox Stack checks the person again. Their series ends early if any of these is true. - They unsubscribed. - They are no longer on the list. - Their address is on your suppression list, for example after a hard bounce or a spam complaint. - They did not match a condition set to **Others leave the automation**. The automation's page counts these people under **Left early**. People still moving through count under **In progress**. People who received every email count under **Finished**. Each person goes through an automation once. Leaving the list and joining again does not start it over. ## Build your first automation These steps build a two-email welcome series. Each step ends with how you know it worked. 1. Open **Automations** and choose **New automation**. **How you know it worked.** You see a page titled New automation, with two starter emails already in **The sequence**. If you see **Create a list first**, add a list on **Audience** and come back. 2. Fill in **Name**, for example Welcome series. In **Starts when someone joins**, pick your list. **How you know it worked.** The list name shows in the menu. You can change it until the automation first runs. 3. Fill in **From address** with an address at your verified domain, and a **Sender name** people will recognise. **How you know it worked.** The preview on the right shows your sender. 4. Edit email 1. Leave its wait at **Right after joining**. Write a subject such as `Welcome, {{name|there}}` and change the text. **How you know it worked.** The preview shows your words. Designed emails get an Unsubscribe link in the footer on their own. 5. Edit email 2. Set its wait, for example **3 days later**, and write it. To add more, choose **Add an email**. **How you know it worked.** Each email card shows its wait above it. 6. Choose **Save automation draft**. **How you know it worked.** You see "Automation created. Turn it on when it's ready." and the automation's own page opens. It is off and sends nothing yet. 7. In **Send a test to**, enter your own address. Leave **Which email** on all emails and choose **Send test**. **How you know it worked.** Every email arrives at once, with no waits. Each subject starts with `[Test · email 1 of 2]` and so on. Check the words, the links and the Unsubscribe link. 8. Choose **Turn on**. **How you know it worked.** You see "Automation is on. New joiners start now." and the status changes to **Active**. 9. Join the list yourself with **Add one contact** or the list's signup form, using an address you can read. **How you know it worked.** Email 1 arrives, and **In progress** on the automation's page goes up by one. **Turning it on does not email the people already on your list**The automation starts only for people who join the list after you turn it on. People who were already on the list get nothing from it. To reach them, send a campaign instead. People added by a CSV import do not start automations either. Tests use the last saved version. If you changed something, choose **Save changes** before you send a test. You can edit an automation while it is on. People part way through get the new version of the emails they have not reached yet. To stop sending, choose **Pause**. Everyone waits where they are until you choose **Resume**. People who join the list while it is paused do not start it. To delete an automation, pause it first. ## Three examples Copy one of these. Each lists every email in order, with its wait and condition. Build them with the steps above. ### A. Welcome series for new subscribers Say hello the moment someone subscribes, then help them get value over the first week. No conditions are needed. | Email | Wait | Condition | What to say | | --- | --- | --- | --- | | 1 | Right after joining | None | Thanks for joining. What you will send and how often. Subject `Welcome, {{name\|there}}` | | 2 | 3 days later | None | Your most useful article, product or offer. | | 3 | 7 days later | None | How to reply, follow you or get help. | Email 3 arrives 10 days after joining, because each wait counts from the email before it. ### B. Nudge people who signed up but never bought Remind people who have not taken the next step, and stop as soon as they do. This works for anything you can record about a person, such as buying, booking or finishing setup. First, record the action as a merge field on each contact. A merge field is a piece of information stored with a contact. For example, a field called `purchased` set to `yes` when the person buys. To set it, import a CSV with an `email` column and a `purchased` column. Importing someone who is already a contact adds the new field to them and does not restart any automation. Your developer can also set it from your app when the purchase happens. | Email | Wait | Condition | What to say | | --- | --- | --- | --- | | 1 | Right after joining | None | Welcome, and the one thing to do first. | | 2 | 2 days later | Merge field `purchased` is empty. **Others leave the automation** | A reminder of what they get, and a link to buy. | | 3 | 5 days later | Merge field `purchased` is empty. **Others leave the automation** | Answer the most common reason people wait. Offer help. | To add the condition, choose **Only send to some people** on the email. Leave **Merge field** selected, type `purchased` as the field name and pick **is empty**. Then pick **Others leave the automation**. The line under the rules reads **Now: purchased is empty.** The check happens when each email is due. Someone who buys on day 1 never gets email 2, and leaves the series at that point. Merge field names are the CSV column names in lower case. Use letters, numbers, underscores or hyphens, up to 64 characters. The **is** and **is not** checks ignore capital letters, so Yes and yes match. ### C. Re-engagement email after 14 days Two weeks after someone joins, send a short note only to people who have not opened anything from you. | Email | Wait | Condition | What to say | | --- | --- | --- | --- | | 1 | Right after joining | None | Your welcome email. | | 2 | 14 days later | Engagement, hasn't opened anything in 14 days. **Others skip this email** | Ask if they still want your emails. Give one clear reason to stay, and point to the Unsubscribe link. | To add the condition, choose **Only send to some people**, change **Merge field** to **Engagement**, pick **hasn't opened anything in … days** and enter 14. The check counts opens of any email you sent them, including campaigns. Some mail apps open emails on their own, so a few quiet people will look active and not get this email. Treat opens as a rough guide. ## Rules that protect you Three rules keep automations from annoying people or hurting your sending. The first two are on the **Automations** page under **Sending rules** and apply to every automation. | Rule | What it does | Options | | --- | --- | --- | | **Quiet hours** | An email due overnight waits until the morning. It uses the person's own time zone if you store one in a merge field called `timezone`, such as `Africa/Lagos`. Otherwise it uses the **Workspace time zone**. | Off, 9 pm to 8 am, 10 pm to 7 am, or 8 pm to 8 am. | | **Frequency cap** | An email waits if the person recently got a campaign or an email from another automation. Emails from the same automation do not count. | No limit, one every 12 hours, one a day, one every 2 days, or one every 3 days. | | Unsubscribe link | Every email must contain an unsubscribe link. Each email also carries a one-click unsubscribe header for mail apps. Anyone who unsubscribes leaves every automation. | Always on. Designed emails add the link for you. In HTML, add `{{unsubscribe_url}}` yourself. | Email 1 always goes straight away when its wait ends. Quiet hours and the frequency cap apply from email 2 on. A held email is sent later. It is not skipped. On managed sending, an email can also wait when your account is close to its daily limit. It tries again a few minutes later. [See Limits](https://outboxstack.app/docs#limits). On a free account, with no plan or credits, each automation email carries a small "Sent free with Outbox Stack" line at the bottom. Buying credits or a plan removes it. Write the person's name with a fallback, such as `{{name|there}}`. When the contact has no name, the email says "there" instead of leaving a gap. ## When it fails Find the message you see in the first column. The messages appear exactly as shown, with N as the email's number. | What you see | Why | Fix | | --- | --- | --- | | `email N needs {{unsubscribe_url}} before the automation can start` | That email is written in HTML and has no unsubscribe link. | Add `Unsubscribe` to its HTML, or choose **Design**, which adds it. Save, then choose **Turn on** again. | | `every email needs {{unsubscribe_url}}` | You saved changes to an automation that is on, and an email has no unsubscribe link. | Add the link as above, then save. | | **Needs {{unsubscribe\_url}}** under an HTML box | A warning while you write. That HTML has no unsubscribe link yet. | Add the link as above. | | `choose a provider for marketing email first` | No provider carries your marketing email. | On **Sending providers**, choose **Use for marketing email** on a provider that can send it. [Learn about routes](https://outboxstack.app/docs/choose-setup#kinds) | | `nothing is set up to send marketing email yet; choose how you send under Providers` | You sent a test before setting up marketing email. | Set up a marketing route as above, then send the test again. | | `automation sender is invalid` | **From address** is not a valid email address. | Enter an address at your verified domain, save, and turn it on again. | | `email N has an incomplete condition` | A rule on that email is missing its field name or its value. | Fill in the rule, or choose **Remove condition**. Then save. | | **Tests use the saved version. Save your changes first to test them.** | You have unsaved edits. | Choose **Save changes**, then send the test. | | `connect a WhatsApp number on the WhatsApp page before turning on an automation with a WhatsApp step` | The automation has a WhatsApp step and no WhatsApp number is connected. | Connect a number on the **Connect** tab of the **WhatsApp** page, then choose **Turn on** again. [How to connect](https://outboxstack.app/docs/whatsapp-setup#connect) | | `test sends are email only; to check a WhatsApp step, send its template to your own number from the Send tab on the WhatsApp page` | You chose a test for an automation, or a step, with no email in it. | Send the template to your own number from the **Send** tab on the **WhatsApp** page. | | **Create a list first** | Your workspace has no lists. | Create a list on **Audience**, then choose **New automation** again. | | **N people are waiting for their next email.** with a reason, then **We try again every 5 minutes.** | Their next email could not be queued. The reason after the first sentence says why. | Fix what the reason names. They move on by themselves at the next try. | | **In progress** stays at 0 after you turn it on | Nobody has joined since. People already on the list, people added by CSV import, and people who joined while it was off or paused do not start it. | Add one test contact with **Add one contact** to check it works. Use a campaign for people already on the list. | An email that was queued but not delivered shows on **Email activity** with the reason. ## Still stuck For one-off newsletters, read the [newsletters guide](https://outboxstack.app/docs/send-newsletters). For emails your app sends to one person, such as receipts, read the [app email guide](https://outboxstack.app/docs/send-app-email). If something looks broken, check the [status page](https://outboxstack.app/status). For anything else, email [support@outboxstack.app](mailto:support@outboxstack.app). Ready to build one?[Open Automations](https://outboxstack.app/dashboard/automations) --- Source: https://outboxstack.app/docs/automations/ # Set up WhatsApp. This guide takes you from no WhatsApp setup to your first message delivered. You need no code. Each step says how to tell it worked. ## What you can do Outbox Stack lets you send WhatsApp messages to your customers from your own business number. You do it all in the dashboard, on the **WhatsApp** page. A few words come up often in this guide. | Word | What it means | | --- | --- | | Meta | The company that owns WhatsApp and Facebook. Meta decides which numbers can send and which messages are allowed. | | WhatsApp Business account | Your business's account with Meta for WhatsApp. Your business number lives inside it. You create or pick it while you connect. | | Template | A message you write once, such as an order update, with blanks for the parts that change. Every message you send from Outbox Stack uses a template. | | Approval | Meta reads each template before you can use it. Only approved templates can be sent. | | 24-hour window | Meta's rules describe a 24-hour window that opens when a customer messages your business. Inside it, a business can reply in its own words. Outbox Stack has no inbox and does not send replies in your own words, so the window does not change what you can send from Outbox Stack. | | You can | You cannot yet | | --- | --- | | Connect your own business number through Meta. | Send free-form messages or marketing blasts. Every message must use an approved template. | | Submit four ready-made templates in one step, or write your own. | Schedule a send for later. A send to a list starts as soon as you confirm it. | | Send an approved template to one customer who agreed to hear from you. | Read or answer replies. There is no shared inbox and no chatbot. | | See whether each message was delivered and read. | Use pictures, buttons or files in templates. | For a short overview, read [WhatsApp for businesses](https://outboxstack.app/whatsapp). ## Before you start Have these ready before you start. | You need | Why | | --- | --- | | A business phone number you control | Meta checks the number before it can send. You must be able to receive Meta's verification on it. | | A Facebook login that manages your business in Meta | You sign in to Meta while you connect. Only someone who manages the business and the number in Meta can finish. Meta may ask for details about your business. | | An owner or admin role in your Outbox Stack workspace | Only owners and admins can connect, manage templates and send. Other members see "An organisation administrator manages WhatsApp setup and sending." | | A payment method on your WhatsApp Business account | Meta bills you directly for messages and blocks sends if no payment method is on file. Add one in Meta's WhatsApp Manager under Payment settings. The Connect tab tells you if it is missing. | | Customers who agreed to hear from you | Before each send, you confirm the person agreed to receive WhatsApp messages. Collecting that agreement is up to you. | | A browser that allows pop-ups | Meta's sign-in opens in a pop-up window. Allow pop-ups and Facebook's sign-in for Outbox Stack. | **If you already use this number in the WhatsApp app**Connecting a number to Meta's business platform can change how it works in the WhatsApp or WhatsApp Business app on your phone. Read Meta's guidance on this before you connect a number you use every day. ## Connect your number The **WhatsApp** page has four tabs. These are **Connect**, **Templates**, **Send** and **Activity**. Start on **Connect**. You copy no account numbers or passwords from Meta. 1. In the dashboard, open **WhatsApp** and the **Connect** tab. Choose **Connect with Meta**. 2. On the **Connect WhatsApp** page, choose **Set up secure connection**. When it says it is ready, choose **Continue with Meta**. 3. A Meta window opens. Sign in, choose your business, and share the number you want to use. Approve the access Meta asks for. 4. If you shared more than one number, pick one under **Business phone number** and choose **Connect selected number**. 5. If Outbox Stack asks for a **WhatsApp two-step verification PIN**, enter the number's six-digit PIN. If it has none yet, choose six digits now. This is not the code Meta sends by text message. Write it down somewhere safe, because Outbox Stack does not keep it. Then choose **Register and connect number**. **How you know it worked.** You see **WhatsApp connected**. Choose **Return to WhatsApp**. The **Connect** tab now shows **Connected number** with your number, and a **WhatsApp access** box appears above the tabs. **Ready to send.** Under **Connected number**, the **Ready to send** list shows whether Meta will let you send. It checks that the number is connected, that a payment method is on your WhatsApp Business account, and that Meta reports no block on sending. Each item says **Ready**, **Needs fixing** or **Could not check**, and a failed item says what to do. After you fix something in Meta, choose **Check again**. Meta can take a little while to allow sending after a fix. The list also shows your daily limit, which is how many different people you can message each day outside a reply window. If the Meta window closes before you finish, choose **Check progress**. To begin again, choose **Restart signup**. Your existing connection stays in place until a new one is saved. The **Connect** tab also has a section for account credentials. It is for people who already have Meta account IDs and an access token. Most people do not need it. ## Get templates approved Open the **Templates** tab. You can start from a ready-made template or write your own. Meta reviews every one. ### Start with a ready-made template Four templates are ready to submit. Each is a utility message, which is an update a customer expects, in English. | Template | Message | | --- | --- | | outbox\_order\_confirmation | Hi {{1}}, we have received your order {{2}}. We will message you again when it ships. | | outbox\_shipping\_update | Hi {{1}}, your order {{2}} is on its way and should arrive by {{3}}. | | outbox\_payment\_received | Hi {{1}}, we received your payment of {{2}} for {{3}}. Thank you. | | outbox\_appointment\_reminder | Hi {{1}}, this is a reminder of your appointment on {{2}} at {{3}}. Please contact us if you need to change it. | Tick the ones you need and choose **Submit selected to Meta**. Each one then shows **Submitted to Meta**, **Already in your account** or **Failed** with the reason. ### Variables, the blanks in a template A variable is a blank you fill in for each person, such as their name or order number. You write it as {{1}}, {{2}} and so on. In _Hi {{1}}, your order {{2}} has shipped_, you fill {{1}} with the name and {{2}} with the order number when you send. ### Write your own template 1. Under **Write your own template**, enter a **Template name** in lowercase letters, numbers and underscores, such as `order_ready`. 2. Leave **Language code** as `en_US` for English, or enter another language code. 3. Pick a **Category**. Choose Utility for updates a customer asked for, and Marketing for promotions. 4. Write the **Message body**, up to 1,024 characters. Text only. Headers, pictures and buttons are not supported. 5. For each variable, enter a realistic example under **Examples for your variables**. Meta's reviewers read these. They are not sent to anyone. 6. Choose **Submit template to Meta**. Outbox Stack checks a few rules as you type. A body can have at most 10 variables. Number them from {{1}} with no gaps. A variable cannot start or end the body, and two variables cannot sit side by side. Meta can still reject a template that passes these checks. Meta's decision is final. ### Template statuses Your templates are listed under **Your templates**. Choose **Refresh** to see the latest status. | Status | What it means | | --- | --- | | Pending review | Meta is still reviewing it. You cannot send it yet. | | Approved | You can send it from the **Send** tab. | | Rejected | Meta said no. The reason from Meta shows under the template when Meta gives one. | | In appeal | You asked Meta to look again, and Meta has not decided yet. | | Paused | Meta has stopped it for now. | | Disabled | Meta has stopped it, and it can no longer be sent. | ### The email Outbox Stack sends When Meta approves, rejects or disables a template, Outbox Stack emails every owner and admin of your workspace who has confirmed their email address. | Outcome | Email subject | What to do | | --- | --- | --- | | Approved | WhatsApp template _name_ was approved | Choose **Open WhatsApp** in the email and send it from the **Send** tab. | | Rejected | WhatsApp template _name_ was rejected | Read the reason from Meta in the email. Fix the wording and submit it again under a new name. You can also appeal in Meta's WhatsApp Manager. | | Disabled | WhatsApp template _name_ was disabled | Check it in Meta's WhatsApp Manager, or create a replacement on the **Templates** tab. | **How you know it worked.** The template shows **Approved** under **Your templates**, and you get the approval email. ## Send a message Open the **Send** tab. It lists only approved templates. 1. Enter the **Recipient number** with its country code, such as +2348012345678 for a Nigerian number. 2. Pick the **Approved template**. 3. Under **Fill in the template**, enter a value for each variable. The **Preview** shows the message as your customer will read it. 4. Tick **The recipient has agreed to receive these WhatsApp messages.** You cannot send without it. 5. Choose **Send message**. Each value can be up to 1,024 characters. It cannot contain a new line, a tab, or five or more spaces in a row. **How you know it worked.** A message appears that starts "Message accepted". Accepted means Meta received it. Delivery shows on the **Activity** tab. To send another, choose **Compose another message**. Some approved templates cannot be sent from Outbox Stack yet, such as ones with buttons or a picture. They are listed under **Approved but not sendable from Outbox yet** with the reason. ### Send to a list You can send one approved template to everyone in a list or segment. A person gets it only if their contact has a WhatsApp number and recorded WhatsApp consent, and they have not unsubscribed. Everyone else is skipped, and the reason is shown. 1. On the **Send** tab, under **Send to**, choose **A list or segment**. 2. Pick the list or segment under **Send to** and the **Approved template**. 3. For each variable, choose where its value comes from: the contact's name, email, an attribute such as city, or fixed text that is the same for everyone. A person missing a value is skipped, never sent a blank. 4. Check the **Preview**, which uses a real contact from the list, and the counts below it: how many people can get the message and how many will be skipped, and why. 5. Choose **Review and send**. Read how many people will get it, tick the box confirming everyone agreed to receive WhatsApp messages and that consent is recorded on their contact, then choose **Send to** with the number of people. Meta limits how many different people your number can message in 24 hours. If more people would get this message than your limit allows, Outbox Stack will not start the send. Send to a smaller list, or wait for Meta to raise your limit. Meta bills your WhatsApp Business account for each message. **How you know it worked.** A progress view opens with how many were accepted, skipped, failed or are still to send. It updates on its own. Choose **Cancel send** to stop sending to the people still waiting; messages already sent stay sent. If your WhatsApp trial or monthly access ends during a send, it shows as paused and carries on when you renew. Past sends are listed under **Recent list sends**. ## Check what happened Open the **Activity** tab. **Recent messages** lists what you sent, newest first, and updates on its own. **Template review updates** lists Meta's latest decisions on your templates. | Message status | What it means | | --- | --- | | Sending | Outbox Stack is handing the message to Meta. | | Accepted by WhatsApp | Meta received the message. | | Sent | WhatsApp sent the message. | | Delivered | It reached the customer's phone. | | Read | The customer opened it. | | Failed | It was not delivered. A code from Meta may show next to it. | | Outcome unconfirmed, check before resending | Outbox Stack could not confirm whether Meta took the message. Wait for an update before you send it again, or your customer may get it twice. | ## Send WhatsApp messages automatically An automation can send a WhatsApp template on its own when someone joins a list. It can send only WhatsApp messages, or mix them with emails. This example sends a payment receipt on WhatsApp the moment your app records a paid order. ### Example: tell a customer their payment arrived 1. Get `outbox_payment_received` approved on the **Templates** tab. It reads "Hi {{1}}, we received your payment of {{2}} for {{3}}. Thank you." 2. On **Audience**, create a list called Paid orders. 3. Open **Automations**, choose **New automation** and pick Paid orders under **Starts when someone joins**. Choose **Add a WhatsApp message** and remove the starter emails you do not want. 4. Under **Approved template**, pick `outbox_payment_received`. Fill in each blank: {{1}} comes from **Contact name**, {{2}} from **A merge field** called `amount`, and {{3}} from **A merge field** called `order_id`. The preview shows the message for a sample contact. 5. Choose **Save automation draft**, then **Turn on**. **How you know it worked.** The status changes to **Active**. 6. When an order is paid, your app adds the customer to the list with a full-access API key. It sends their WhatsApp number, their consent and the order details as merge fields. ``` curl "$MAIL_BASE_URL/v1/lists/LIST_ID/contacts" \ -H "Authorization: Bearer $MAIL_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "consent": true, "source": "checkout", "contacts": [{ "email": "ada@example.com", "name": "Ada", "whatsapp": "+2348012345678", "whatsappConsent": true, "attributes": { "amount": "NGN 5,000", "order_id": "#1042" } }] }' ``` **How you know it worked.** Ada gets "Hi Ada, we received your payment of NGN 5,000 for #1042. Thank you." On the automation's **Overview**, the **WhatsApp messages** table counts it as accepted, then delivered and read as Meta reports them. ### What happens to each person | Situation | What happens | | --- | --- | | The contact has a WhatsApp number, WhatsApp consent and a value for every blank | The template is sent once. If Outbox Stack restarts mid-send, it does not send a second copy. | | No WhatsApp number, no WhatsApp consent, or an empty value | The WhatsApp message is skipped and the person goes on to the next step, so later emails still arrive. The **Skipped** column says why. | | Your WhatsApp access has ended, or no number is connected | The person waits and Outbox Stack tries again every 5 minutes. After a day of waiting the message is skipped and the journey goes on, because a late receipt reads as a mistake. | | Meta refuses the message | It counts as failed and is not sent again. The person goes on to the next step. | | Outbox Stack cannot confirm whether Meta took it | It is not sent again, so the customer never gets it twice. | An automation with a WhatsApp step needs a connected number before it can be turned on. It needs a route for marketing email only if it also has an email step. Test sends from an automation are email only. To check the WhatsApp message, send its template to your own number from the **Send** tab. **Each contact goes through an automation once**A customer who pays a second time is already on the list, so the automation does not start again for them. Their merge fields do update with the new order. For more on how automations work, read [Automate follow-up emails](https://outboxstack.app/docs/automations). ## Who bills you Two separate charges apply to WhatsApp. | Who | What for | How you pay | | --- | --- | --- | | Meta | The messages you send. The amount depends on the customer's country and the template category. | Meta bills your own Meta business account directly. Outbox Stack adds nothing per message. | | Outbox Stack | Access for each connected business number, one month at a time. | In the **WhatsApp access** box, choose **Start 14-day trial** or **Buy one month**. There is no automatic renewal. | Each number gets one trial. Meta still charges for messages during the trial. Your Outbox Stack email credits do not pay for WhatsApp, and WhatsApp access does not add email credits. For the current price in your currency, see [WhatsApp pricing](https://outboxstack.app/whatsapp#whatsapp-pricing). When access ends, the box shows **Sending is paused**. Your templates and message history stay. Choose **Renew for one month** to send again. ## When something goes wrong Find the words you see on screen in the first column. | What you see | Why | What to do | | --- | --- | --- | | An organisation administrator manages WhatsApp setup and sending. | Your role in this workspace is not owner or admin. | Ask an owner to make you an admin, or to set up WhatsApp. | | Meta sign-in was blocked. Allow Facebook’s sign-in service in your browser and try again. | Your browser or an extension blocked Meta's sign-in. | Allow Facebook's sign-in for Outbox Stack, or try another browser, then start again. | | Meta’s popup could not open. Allow popups for Outbox, then continue again. | Your browser blocked the pop-up window. | Allow pop-ups for Outbox Stack and choose **Continue with Meta** again. | | Meta signup was closed or access was not approved. Your current connection has not changed. You can try again. | The Meta window was closed, or access was declined. | Choose **Continue with Meta** and approve the access Meta asks for. | | Messaging access was not granted; reconnect and allow WhatsApp messaging. | In the Meta window, the permission to send messages was turned off. | Connect again and leave WhatsApp messaging allowed. | | Meta shared an account without a phone number. Add and verify a number in Meta, then check progress or restart signup. | Your WhatsApp Business account has no number yet. | Add and verify a number in Meta, then choose **Check progress** or **Restart signup**. | | Verify this phone number in Meta before completing connection. | Meta has not verified the number yet. | Finish the number's verification in Meta, then connect again. | | Meta could not register this number; check its six-digit two-step verification PIN and retry. | The PIN was wrong, or Meta refused the number. | Enter the number's correct six-digit PIN. This is not the text message code. | | Too many attempts. Wait a minute, then try again. | Too many sign-up or PIN attempts in a short time. | Wait 15 minutes, then try again. | | This number is connected to another Outbox workspace. | A number can belong to only one workspace. | Connect a different number, or contact support. | | Account access needs attention | Outbox Stack could not check your number with Meta. Access may have expired or been removed in Meta. | On the **Connect** tab, choose **Reconnect with Meta**. | | No approved template to send yet | No template has been approved. | Submit a template on the **Templates** tab and wait for the approval email. | | Start your WhatsApp trial or renew this number’s monthly access in the WhatsApp dashboard; Meta charges apply separately. | The number has no trial or paid access right now. | Start the trial or buy a month in the **WhatsApp access** box. | | The body cannot start with a variable. Add some text before it. | The template breaks one of the variable rules. | Follow the message under the body. Similar messages cover gaps in numbering and variables side by side. | | Failed, with code 131042 | Meta blocked the send because of a billing problem on your WhatsApp Business account, such as no payment method. | Add or fix the payment method in Meta's WhatsApp Manager, check the **Ready to send** list on the **Connect** tab, then send again. | | Failed, with a code | Meta did not deliver the message. For example, the values you filled in may not match the template's blanks. | Check the number and the values, then send again with a new message. | | Outcome unconfirmed, check before resending | Outbox Stack could not confirm whether Meta took the message. | Wait for the status on **Activity** to update before you send again. | ## Send from your own code A developer can send an approved template from code. Create an API key with full access on the **API keys & SMTP** page. Test keys and domain-restricted keys cannot use WhatsApp. The workspace needs a connected number and active access, and the template must be approved. There is an HTTP API only, with no SDK. ``` curl "$MAIL_BASE_URL/v1/whatsapp/messages" \ -H "Authorization: Bearer $MAIL_API_KEY" \ -H "Content-Type: application/json" \ --data '{ "to": "2348012345678", "templateName": "outbox_order_confirmation", "language": "en_US", "idempotencyKey": "order-1042-confirmation", "optInConfirmed": true, "parameters": ["Ada", "1042"] }' ``` | Field | What it is | | --- | --- | | `to` | The recipient's number with its country code, digits only. A leading + is accepted. | | `templateName` | The name of an approved template, in lowercase letters, numbers and underscores. | | `language` | The template's language code, such as `en_US`. | | `idempotencyKey` | Required. 8 to 128 characters, unique for each message you mean to send. Build it from the event that caused the message. | | `optInConfirmed` | Must be `true`. It states that the recipient agreed to receive WhatsApp messages. | | `parameters` | The values for {{1}}, {{2}} and so on, in order. Optional for a template with no variables. At most 10, each 1 to 1,024 characters, with no new line, tab or five spaces in a row. | | Response | What it means | | --- | --- | | 202 | Meta accepted the message. The body has `id`, `status` and `providerId`. Delivery follows on **Activity** or from `GET /v1/whatsapp/messages`. | | 200 | A replay. This key was already used with the same details, so nothing was sent again. The body has the stored `id` and `status`. | | 409 | This key was already used with different details. Use a new key for a different message. | | 402 | The number has no trial or paid access. Start the trial or buy a month in the dashboard. | | 422 | Meta refused the send, and it is recorded as failed. The error names the Meta code. Fix the cause, then send with a new key. Code 131042 is a billing problem on your WhatsApp Business account. | | 400 | A field is missing or invalid. | | 502 | The outcome is unknown. The message is recorded as unknown and is never retried for you. Check **Activity** before you send again. | A retry with the same `idempotencyKey` and the same details never sends twice. `GET /v1/whatsapp/messages` returns your latest 100 messages, newest first, as `{ "messages": [...] }`. Each has `id`, `recipient`, `template_name`, `language`, `provider_id`, `status`, `error_code` and `created_at`. ## Still stuck Not sure WhatsApp is right for you? Read [WhatsApp for businesses](https://outboxstack.app/whatsapp). To send email as well, start with [Choose your setup](https://outboxstack.app/docs/choose-setup) or [Send email from your app](https://outboxstack.app/docs/send-app-email). If something looks broken, check the [status page](https://outboxstack.app/status). For anything else, email [support@outboxstack.app](mailto:support@outboxstack.app). Ready to connect?[Open WhatsApp](https://outboxstack.app/dashboard/whatsapp) --- Source: https://outboxstack.app/docs/whatsapp-setup/ # Use Outbox Stack with AI assistants. Coding assistants such as Claude Code, Cursor and Codex can add Outbox Stack to your app. This page lists what they can read, how to give them a key that can't do damage, and what to check before you go live. ## What assistants can read Every page of this site has a plain Markdown copy, so an assistant doesn't have to run the site to read it. | File | What it has | | --- | --- | | [/llms.txt](https://outboxstack.app/llms.txt) | A short index of the site, with a link to every Markdown page. | | [/llms-full.txt](https://outboxstack.app/llms-full.txt) | Every docs page in one file. Give this one to a coding assistant. | | [/openapi.json](https://outboxstack.app/openapi.json) | The REST API, machine-readable: every endpoint, field and error. | | [/pricing.md](https://outboxstack.app/pricing.md) | Every price in naira and US dollars, with worked totals for a month of sending. | | Any page + `.md` | The Markdown copy of that page, for example [/docs/send-app-email.md](https://outboxstack.app/docs/send-app-email.md) or [/security.md](https://outboxstack.app/security.md). | There is no Outbox Stack MCP server yet. Assistants that can make HTTP requests use the REST API, described in the OpenAPI spec. ## Give your assistant the docs Ask your assistant to read `llms-full.txt` before it writes code, so it uses the real API instead of guessing. For example, paste this into Claude Code, Cursor or Codex: ``` Read https://outboxstack.app/llms-full.txt. Then send our password reset email through Outbox Stack using the Node.js SDK (@getoutbox/sdk). Read the API key from OUTBOX_API_KEY, send an Idempotency-Key for each email, and show me the code before you change anything else. ``` Swap the SDK for the one your app uses: `pip install outboxstack` for Python, `composer require getoutbox/outbox-php` for PHP, `composer require getoutbox/outbox-laravel` for Laravel, or `go get github.com/Outbox-Stack/outbox-go` for Go. ## A safe key for an agent An assistant only needs to send. Give it the smallest key that does that. - **While it builds,** create a [test key](https://outboxstack.app/docs#test-mode). It accepts mail without sending it, so a mistake reaches no one. - **When you go live,** create a **Sending only** key on **Developers** and lock it to one sender domain. It can't change your workspace or send as your other brands. - Put the key in `OUTBOX_API_KEY` in your environment, not in the code or the chat. If a key ends up somewhere it shouldn't, revoke it on **Developers**; that takes effect at once. ## Add Outbox Stack to AGENTS.md Assistants read `AGENTS.md` (or `CLAUDE.md`) at the root of your repository each time they start. Add this so every session knows how your app sends email: ``` ## Email: Outbox Stack - Docs as Markdown: https://outboxstack.app/llms-full.txt - REST API spec: https://outboxstack.app/openapi.json - Send with POST https://outboxstack.app/v1/messages and the header Authorization: Bearer $OUTBOX_API_KEY. - Send an Idempotency-Key header for each logical email, so a retry never sends it twice. - Read the key from OUTBOX_API_KEY. Never commit a key. Use a test key in development. - Newsletters go through campaigns in the dashboard, not the API. ``` ## Check what it built Before you switch to a live key, check these yourself: - The key comes from the environment, and no key is committed anywhere in the repository. - Every send has an `Idempotency-Key` made from something stable, such as the order or reset request ID, so a retry doesn't send twice. - Bounces and complaints reach your app through [signed webhooks](https://outboxstack.app/docs#events), and the code checks the signature. - A test send shows up on **Email activity** in the dashboard with the right sender, subject and recipient. ## Still stuck For every endpoint and field, read the [documentation](https://outboxstack.app/docs). If something looks broken, check the [status page](https://outboxstack.app/status). For anything else, email [support@outboxstack.app](mailto:support@outboxstack.app). --- Source: https://outboxstack.app/docs/ai-agents/