
Sending email from serverless functions: pitfalls and patterns
Functions that freeze after the response, time out mid-send or retry twice break email in odd ways. The pitfalls of serverless sending and patterns that work.
5 min read
Blog · Email API · page 3 of 5
Transactional email engineering: sending APIs, SMTP relays, webhooks, retries, idempotency, templates and testing.

Functions that freeze after the response, time out mid-send or retry twice break email in odd ways. The pitfalls of serverless sending and patterns that work.
5 min read

If customers edit email templates in your product, give them a preview and a safe test send. What to render, how to fake data and how to prevent abuse.
5 min read

A contact form is an email-sending endpoint open to the internet. How attackers abuse it, and the checks that stop spam, header injection and reputation damage.
5 min read

Letting customers send from their own domain means checking their DNS. How to verify ownership, SPF, DKIM and DMARC and turn a failure into a clear fix.
5 min read

Auto-replies are not bounces and not engagement. How to recognise them, keep them out of your metrics and avoid email loops when your own app sends mail.
5 min read

Support asks 'did the receipt go out?' a hundred times a day. Design an email logs endpoint with cursor pagination, useful filters and safe defaults.
5 min read

Send at 9 a.m. local time, not 9 a.m. server time. Store zones correctly, handle daylight saving and design a scheduler that survives retries and outages.
4 min read

SMTP and an HTTP API both send the same message. Here is what each gives you in errors, retries, metadata and tooling, and a simple way to pick one.
5 min read

How long should a sender keep retrying a deferred message? Exponential backoff with jitter, sensible give-up windows and what to tell users meanwhile.
4 min read

Respect Retry-After, smooth bursts with a token bucket and keep retries idempotent. A practical guide to living within an email API's rate limits.
4 min read

Store email delivery events in an append-only table, derive message status from it, and keep the history you need to answer support questions.
5 min read

Validate signup addresses with syntax checks, domain and MX lookups and typo suggestions, but skip SMTP probing. A layered approach with code.
4 min read