
When we hand over a new SaaS app, the part most likely to break quietly is email. The pages load, payments go through, and the dashboard looks right. Then a week later a customer writes in to say they never got their password reset, and nobody can say why.
Transactional email is the mail your app sends because a user did something: sign-up confirmations, sign-in codes, password resets, invoices and alerts. People expect these within seconds. If they land in spam or never arrive, users stop trusting the product, often before they have used it properly.
This is the checklist our team works through before any web application we build goes live. None of it is hard. Most of it is easy to forget.
1. Send from a subdomain, with SPF, DKIM and DMARC in place
Do not send app email from your bare domain. Use a subdomain such as mail.yourapp.com or notify.yourapp.com. Mailbox providers track reputation per domain, so a subdomain keeps your app email separate from the email your staff send from Google Workspace or Microsoft 365. If one has a bad month, the other is not dragged down with it.
Then publish three DNS records for that subdomain:
- SPF lists the servers allowed to send for the domain.
- DKIM adds a signature to each message so receivers can check it was not changed on the way.
- DMARC tells receivers what to do when SPF or DKIM fails, and where to send reports.
Start DMARC at p=none so you can read the reports without blocking anything. Once the reports show only your own services sending, move to p=quarantine. Gmail and Yahoo now expect all three records from anyone sending at volume, so this is no longer optional.
Check the result by sending a real message to a Gmail and an Outlook inbox and opening the full headers. You want to see spf=pass, dkim=pass and dmarc=pass. If one fails, fix it before launch, not after.
2. Add an idempotency key to every send
Most apps send email from a background job, and background jobs retry. If the network drops after the email provider accepted the message but before your app got the reply, the job runs again and the user gets two receipts. With a payment or a refund, a duplicate email causes real confusion.
The fix is an idempotency key: a unique value sent with the request so the provider can tell a retry from a new email. Build it from the event, not from the time. For example, invoice-4821-paid or user-77-password-reset-3. The same event always produces the same key, so a retry is ignored and a real second email gets a new key. If your provider does not support idempotency keys, store a "sent" flag in your own database before you call it.
3. Set up webhooks and store what they tell you
"Accepted by the API" does not mean "delivered". Your provider learns what happened later and reports it through webhooks: delivered, bounced, complained, and sometimes opened or clicked. Before launch, make sure your app:
- Has a webhook endpoint that checks the signature on each request, so nobody else can post fake events to it.
- Saves the status against each message, so support staff can answer "did the email go out?" without asking a developer.
- Stops sending to an address after a hard bounce or a spam complaint.
- Returns a 200 quickly and does the slow work in a queue, so the provider does not time out and resend the event.
4. Watch bounce and complaint rates from day one
Two numbers decide whether your email keeps reaching inboxes: the bounce rate and the spam complaint rate. Google asks bulk senders to keep complaints below 0.3%, and well under 0.1% is the safer target. For bounces, aim for under 2%.
New apps run into trouble here more often than old ones. Test accounts with made-up addresses, a seeded user list imported from an old system, or a sign-up form with no email check can all push the bounce rate up in the first week. Confirm addresses at sign-up, clean imported lists before the first send, and put both numbers on a dashboard someone actually looks at.
5. Keep transactional and marketing email apart
Product updates and newsletters get more complaints than password resets, because some people never wanted them. If both come from the same domain and the same account, a newsletter that annoys people can push your sign-in codes into spam. Send marketing from a different subdomain, ideally through a separate account or provider. Our email marketing work always runs on its own setup for this reason.
6. Put limits on any AI feature that can send email
This item is new to our list. More of the apps we build now include an AI assistant that can draft and send emails for the user: follow-ups, reminders, replies to support tickets. That is useful, but it means the code no longer decides exactly when an email goes out. The model does.
If the assistant gets stuck retrying, or misreads an instruction and emails a whole customer list, it can do a lot of damage to your sending domain in a short time. The same domain also carries your password resets, so every user pays for it. Before launch we set up:
- A separate API key for the AI feature. Never share it with the rest of the app.
- A send cap on that key, per hour or per day, set low at first and raised once the feature has a track record.
- A way to stop that key instantly without a deploy.
- Human approval for anything going to many recipients or containing sensitive details.
- Limits the AI cannot change. If the assistant can raise its own cap, the cap does nothing.
You can build these controls yourself, but some email providers now include them. One example is AgentiSend, a transactional email API with send limits for AI agents. Each API key carries its own send budget (monthly by default, or hourly or daily), there is a kill switch for one key or all of them, and emails that need sign-off can wait in an approval queue. An agent cannot raise its own budget or approve its own held emails. It also handles the normal side of transactional email: an Idempotency-Key header on sends, delivery webhooks, scheduled sends and batch sends of up to 500 messages. It tracks bounce and complaint rates per domain over seven days, warning at 2% bounces or 0.05% complaints and pausing sending at 4% or 0.08%.
For testing, any address at simulator.agentisend.com accepts mail without reaching a real person, which is handy when you want to let an AI feature run through a full flow on staging. The AgentiSend quickstart guide covers adding a domain, creating a key and the first send. There is a free plan with 5,000 emails a month, which is enough for most apps in their first months.
7. Test the emails people will actually receive
Finally, send every template to a real inbox and read it the way a user would:
- Every email has a plain-text version as well as HTML.
- Links point to the live domain, not staging or
localhost. - The From name is your product name, and Reply-To goes to a mailbox someone reads.
- Password reset and sign-in links expire, and an old link shows a clear message.
- The email looks right on a phone, with dark mode on.
The short version
Before launch day, tick off each of these:
- App email sends from a subdomain with SPF, DKIM and DMARC passing.
- Every send carries an idempotency key built from the event.
- Webhooks are signed, stored and used to stop sending to bad addresses.
- Bounce and complaint rates are on a dashboard with a named owner.
- Marketing email is on a separate subdomain or account.
- AI features have their own key, a low cap, a stop switch and approval for bulk sends.
- Every template has been read in a real inbox, on desktop and phone.
It takes an afternoon to work through, and it saves a lot of support tickets in the first month. If you are planning a SaaS product and want a team that handles this kind of detail as part of the build, you can ask us for a quote.