Sub topic 1
What consent means for an email list
Consent is the foundation of every other piece in this tutorial: confirmation tokens, audit trails, unsubscribe links and preference centres all exist to create, prove or honour it. This chapter defines what consent means for an email list, so later chapters can build on it.
Prerequisites
This chapter assumes you have the following:
- A basic understanding of how email sending and HTML email work.
- Familiarity with HTTP GET and POST requests and web forms.
- Basic SQL and one general-purpose programming language.
- A general awareness of what spam complaints and sender reputation are.
What consent is
Consent is a person's agreement to receive a specific kind of message from a specific sender. Having someone's address is not consent. An address can come from a purchased list, a business card or a scraped web page, and none of those show that the person wants your mail.
Useful consent has four properties:
- Specific. The person agrees to a defined purpose, such as "a weekly product digest". It does not cover everything your company might send later.
- Informed. The sign-up form says who you are and what you will send, in plain words, before the person submits it.
- Freely given. Agreeing to the list is not hidden inside another action, such as a pre-ticked box on a checkout page.
- Provable. You can later show when, where and under what wording the person agreed.
The last property is the one engineers most often miss. A status = 'subscribed' column tells you the current state. It does not tell you how the person got there.
Where consent goes wrong
Most consent failures come from a few patterns:
| Pattern | Why it fails |
|---|---|
| Typo or mistaken address | The owner of the address never asked for the mail. |
| Someone signs up another person | The form accepts any address, so nothing proves the owner agreed. |
| Bundled consent | A single checkbox covers unrelated purposes. |
| Scope creep | People joined for receipts and then receive promotions. |
| No evidence | You cannot show when or how the person agreed. |
Each failure produces the same symptom. Recipients mark the mail as spam, bounces rise, and mailbox providers lower your sender reputation.
Consent as data
Treat consent as data you store and can query, not as a feeling about the list. A subscriber record holds the current state, and a separate append-only table holds the history of changes. The following schema is a minimal version that later chapters extend.
CREATE TABLE subscribers (
id BIGSERIAL PRIMARY KEY,
email TEXT NOT NULL UNIQUE,
status TEXT NOT NULL DEFAULT 'pending'
CHECK (status IN ('pending', 'confirmed', 'unsubscribed')),
created_at TIMESTAMPTZ NOT NULL DEFAULT now(),
confirmed_at TIMESTAMPTZ
);
CREATE TABLE consent_events (
id BIGSERIAL PRIMARY KEY,
subscriber_id BIGINT NOT NULL REFERENCES subscribers(id),
event_type TEXT NOT NULL
CHECK (event_type IN ('signup', 'confirm', 'unsubscribe', 'preferences_updated')),
source TEXT NOT NULL,
consent_text TEXT,
ip_address INET,
user_agent TEXT,
occurred_at TIMESTAMPTZ NOT NULL DEFAULT now()
);Three details matter here:
- A new subscriber starts as
pending, notconfirmed. A form submission shows that someone typed an address. It does not show that the address owner agreed. consent_eventsrecords thesource(which form or page), theconsent_text(the exact wording shown) and the technical context. Wording changes over time, so storing the text is what makes the record meaningful.- Rows in
consent_eventsare only added, never edited. History you can rewrite is weak evidence.
The consent life cycle
Consent can be given, confirmed and withdrawn. Your system has to support all three.
Withdrawal deserves equal care. If giving consent takes one click, withdrawing it must not take five. Later chapters cover this in detail.
Consent and purpose
Consent attaches to a purpose. A person who confirms a newsletter has not agreed to partner offers. Keep the purposes your list serves explicit, and avoid sending outside them. The preference data model in a later chapter turns this idea into topics and frequencies that a subscriber can control.
Exercise
A visitor enters an address on your sign-up form, and your system immediately sets the subscriber's status to confirmed. Name two problems with this design.
Show answer
First, the form submission does not prove that the owner of the address agreed, because anyone can type any address. The status should start as pending until the owner confirms. Second, without a consent event that records the source, the wording shown and the time, you cannot demonstrate later when or how consent was given.