Sub topic 3
Suppression Lists and Preference Centres
Assume you understand HTTP requests, basic SQL, and how an email provider sends campaigns. This chapter connects unsubscribe handling, subscriber preferences, and delivery metrics.
Suppression lists
A suppression list contains addresses that must not receive marketing email. Add an address when someone unsubscribes, submits a spam complaint, or permanently bounces. Keep the record even if the subscriber later appears in an import. Removing a suppression record should require an intentional, auditable action.
Check the list immediately before each send. Do not rely only on the list-building query.
suppressed = {
"[email protected]",
"[email protected]",
}
def should_send(email: str, campaign: str) -> bool:
normalized = email.strip().lower()
if normalized in suppressed:
return False
return campaign in {"product_updates", "weekly_digest"}Use a transaction or a provider-side suppression feature when possible. Test that a recently unsubscribed address is excluded from queued and scheduled campaigns.
List-Unsubscribe and one-click unsubscribe
Marketing messages should include both a visible unsubscribe link and standard headers:
List-Unsubscribe: <https://example.com/unsubscribe/TOKEN>, <mailto:[email protected]?subject=unsubscribe>
List-Unsubscribe-Post: List-Unsubscribe=One-ClickThe one-click endpoint must accept an authenticated, purpose-specific request over HTTPS. Make it idempotent, so repeating it has the same result. Do not change subscription state on an ordinary GET; scanners may prefetch links.
Preferences and the preference centre
Model preferences separately from global suppression. A subscriber might receive product updates monthly but not event announcements.
| Field | Example |
|---|---|
| topics | product updates, events |
| frequency | daily, weekly, monthly |
| channels | email, SMS |
| paused_until | 2027-01-15 |
The preference centre should show current choices, offer a pause or lower frequency, and provide a clear full-unsubscribe option. Apply these choices, then apply the suppression list again immediately before sending.
Deliverability and measurement
Preference controls reduce unwanted mail, complaints, and inactive subscribers. Track confirmation rate, unsubscribe rate, complaint rate, hard-bounce rate, and delivery rate by source and campaign. Test expired tokens, repeated unsubscribe requests, scanner-like GET requests, preference changes, and suppression checks in both immediate and scheduled sends.
Exercise
Why must a suppression check happen after preference filtering and immediately before delivery?
Show answer
Because preferences can change after an audience is built, and the final check prevents a newly suppressed address from receiving the message.