Blazalek.com

Guide

Production-grade email systems

The full, production-oriented guide to building email systems: deliverability, transactional and marketing email design, compliance, reliability, webhooks and list hygiene. Ten chapters that take you from DNS authentication to a system mailbox providers trust.

By

01

Email Types: Transactional vs Marketing

The core distinction between mail a user is waiting for and mail you want them to read, plus the legal framing, the hybrid gray area, and how the split shapes your sending infrastructure.

Read chapter
02

Transactional Email Catalog

A practical catalog of transactional emails by category, plus ready-made sets per app type: what to build, when to send and what each email must contain.

Read chapter
03

Deliverability

The four pillars of reaching the inbox: SPF/DKIM/DMARC authentication, sender reputation, bounce & complaint handling, and DNS architecture that protects transactional mail.

Read chapter
04

List Management

Keeping lists clean: suppression lists, automated hygiene, data retention, and separating transactional from marketing streams so you don't erode sender reputation.

Read chapter
05

Transactional Email Design

How to build the mail users expect, clear, fast and action-oriented: subject lines, structure, mobile-first layout, OTP/CTA display and error handling.

Read chapter
06

Email Capture

Collecting addresses responsibly: client- and server-side validation, double opt-in verification, dark-pattern-free form design and proper consent capture.

Read chapter
07

Marketing Emails

Running a consent-based program: how to collect opt-in, make unsubscribing painless, design valuable messages and keep the list healthy so mail keeps landing.

Read chapter
08

Compliance

A summary of the key regimes (CAN-SPAM, GDPR, CASL and others): unsubscribe rules, consent records and the technical headers now required of bulk senders.

Read chapter
09

Sending Reliability

Sending as a distributed-systems problem: idempotency (no duplicates), retry with backoff, error-code handling and queuing decoupled from the request path.

Read chapter
10

Webhooks & Events

The other half of the email story: event types, signature verification, non-negotiable idempotent processing, and reacting to bounces and complaints to keep suppression accurate.

Read chapter

How to use this guide

Four reading paths depending on where you are. Pick the one that matches your situation.

New app

Start with chapters 01 and 02 (which emails you need), then 03 (DNS authentication) before your first send.

Spam issues

Go straight to chapter 03 (Deliverability). The most common cause is gaps in authentication.

Marketing

Follow 06 (Email Capture) → 08 (Compliance) → 07 (Marketing Emails).

Production-ready

Work through 09 (Sending Reliability) → 10 (Webhooks & Events) → 04 (List Management).

Email system architecture

How the pieces fit together, from capture and consent through idempotent sending to webhook-driven list hygiene.

System architecture

List-hygiene loop
1

Capture & consent

An address joins the list only after confirmation

User
Email form
Validation
Double opt-in
Consent recorded
2

Sending

Suppression is the gate before every send

Suppression check
Ready to send
Idempotent send + retry
Email API
3

Webhook events

The provider reports what happened to each email

Webhook events (signature + dedup)
Delivered
Opened / clicked
Bounced
Complained
4

List hygiene

Bounces and complaints update the suppression list

Suppression list updated
List hygiene jobs

The feedback loop

The updated suppression list (stage 4) flows back into the suppression check (stage 2), blocking future sends to bounced and complained addresses. This is how webhook events keep the list healthy.

Stage 2 · Suppression gateStage 4 · Hygiene
Legendsuccessproblem → suppressgate / hygienesignal
Four stages, one loop: webhook events feed the suppression list, which returns to the pre-send check on every send.

Every question this guide answers

Browse the full contents and jump straight to the answer you need.

01

Email Types: Transactional vs Marketing

02

Transactional Email Catalog

03

Deliverability

04

List Management

05

Transactional Email Design

06

Email Capture

07

Marketing Emails

08

Compliance

09

Sending Reliability

10

Webhooks & Events