Sub topic 3
Single opt-in versus double opt-in
This chapter compares the two ways a sign-up can become a subscription. It assumes you know how email sending works, can read HTTP GET and POST requests, and have a rough idea of what spam complaints and sender reputation are. Later chapters build the token, confirmation page, and records in detail. Here the goal is to choose between the models and understand what each one costs.
The two models
An opt-in model defines the moment a person counts as subscribed.
- Single opt-in (SOI): the person submits their address in a form and is subscribed immediately. The first email you send is your first message to them.
- Double opt-in (DOI): the person submits the form, and you send one confirmation email. They are subscribed only after they act on that email, usually by clicking a link and pressing a button.
Some teams use the term "confirmed opt-in" for DOI. The meaning is the same.
What a form submission proves
A form submission proves only that someone typed an address and clicked a button. It does not prove that the address belongs to that person. Three things commonly go wrong:
- Typos.
[email protected]is a different mailbox, possibly one belonging to a stranger. - Malicious or careless sign-ups. Anyone can enter another person's address. This is sometimes called list bombing when it is used to flood a victim with sign-up emails from many sites.
- Bots. Automated scripts submit forms with harvested or invented addresses, and some of those addresses are spam traps (addresses that exist only to catch senders with poor list hygiene).
DOI addresses all three. A confirmation click shows that someone with access to the mailbox took a deliberate action. It still is not perfect proof of identity, because a mailbox can be shared or a scanner can click for the user (see the chapter on link scanners). It is, however, much stronger evidence than a form submission alone.
Comparing the models
| Dimension | Single opt-in | Double opt-in |
|---|---|---|
| Sign-up friction | One step | Two steps, with a delay while the person finds the email |
| List growth | Higher raw count | Lower raw count, because some people never confirm |
| Address validity | Unverified | Verified as reachable and read by someone |
| Typos and fake addresses | Enter the list | Never become active |
| Spam trap risk | Higher | Much lower |
| Abuse by third parties | One unsolicited email per sign-up, and later campaigns | One confirmation email, then nothing without a click |
| Evidence of consent | Form submission record only | Form record plus a confirmation event |
| Engineering work | Minimal | Tokens, a confirmation page, resend logic, and expiry |
The "higher raw count" row needs care. The extra addresses SOI collects are often ones that will never open a message, bounce, or complain. They inflate the number without adding value, and they can harm your sending reputation.
How much growth does DOI cost?
The loss depends heavily on audience and context. A newsletter that readers actively seek out might lose 10 to 30 percent of sign-ups at the confirmation step. A list fed by a low-intent offer, such as a discount pop-up, can lose far more. Treat any figure you read as a starting point and measure your own funnel, as covered in the final chapter.
Many of the people lost are not real losses. Those who never confirm are the least likely to engage, so an unconfirmed address would probably have become a bounce, a complaint, or a silent inactive subscriber.
Where each model fits
Neither model is correct everywhere. Use these criteria.
Consider single opt-in when
- The sign-up happens inside an authenticated flow where the address is already verified, for example a logged-in customer ticking a box in their account settings.
- The person is receiving mail that they requested and that is transactional in nature, such as a receipt for a purchase. (Transactional mail is a separate category from marketing, with different rules.)
- The cost of a lost sign-up is high and the abuse risk is low, such as a small internal list of known colleagues.
Even then, you should still validate syntax, check for obvious typos, and protect the form against bots. SOI does not remove the need for list hygiene. It moves that work elsewhere.
Consider double opt-in when
- The form is public and anonymous, so anyone can type any address.
- Your legal setting or your own policy expects you to demonstrate consent. Some jurisdictions and regulators in particular favour or effectively expect DOI. The next chapters cover the legal context.
- Your sending reputation is fragile, or you share an IP address with other senders.
- You collect addresses at events, over the phone, or on paper, where transcription errors are common.
- You have previously suffered from list bombing or spam trap hits.
A middle path: risk-based confirmation
You are not forced into one global setting. Some senders confirm only when the sign-up looks risky, for example when:
- the address comes from a free-mail domain on a public form, but not when the customer is signed in;
- the sign-up came through a partner or co-registration channel;
- the IP address or user agent matches known abuse patterns;
- an address with this domain has produced bounces before.
This increases complexity. Every rule you add needs a test and an owner, and a mixed list means your records must say which path each subscriber took. Start with a single global rule and refine it only when your data shows a clear reason.
What DOI does not do
DOI is not a complete consent strategy, and it can create false confidence.
- It does not replace clear wording. If the form says "Get our newsletter" but you later send partner offers, a confirmation click does not cover the extra use. The wording the person saw is part of the evidence.
- It does not stay valid forever. Someone who confirmed five years ago and never opened a message since is a deliverability risk, whatever the original consent was.
- It does not stop scanners. Corporate security tools often open every link in an incoming message. If a single GET request confirms the subscription, DOI is silently reduced to SOI with a misleading record. The fix is to make the link show a page, and to change state only on POST.
- It does not remove the need for unsubscribe. Every message must still carry a working way out.
The cost of DOI on your side
Choosing DOI creates obligations you need to plan for:
- A new state. Subscribers need a
pendingstate in which they are stored but never mailed. The lifecycle chapter models this. - A confirmation message. It must arrive quickly and reliably, and it is the first impression of your brand. A slow or spam-foldered confirmation loses the subscriber.
- Token security. Links must be signed, tied to a purpose, and expire.
- Resend and cleanup rules. Decide how many reminders you send and when you delete pending records.
- A guard against abuse of the confirmation email itself. If anyone can trigger a confirmation message to any address, your form becomes a tool for sending unwanted email. Rate limit by address and IP, and never send more than a small number of confirmations to one address in a period.
The data model already supports this. The subscribers table stores a status that starts as pending, and the confirmation step later sets it to confirmed:
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
);Under SOI you could insert rows with status = 'confirmed' directly. Under DOI the default is pending, and a query that selects recipients for a campaign must filter on status = 'confirmed'. Forgetting that filter is the most common DOI bug, because the pending rows look exactly like any others.
SELECT id, email
FROM subscribers
WHERE status = 'confirmed';Choosing in practice
Work through these questions in order.
- Is the address already verified by another process, such as a logged-in account with a confirmed email? If yes, SOI is reasonable.
- Is the sign-up form public? If yes, lean towards DOI.
- Must you be able to demonstrate consent to a regulator or partner? If yes, choose DOI and keep the records.
- Can you afford to lose some sign-ups in exchange for list quality? Usually yes, once you count the cost of complaints and bounces.
- Do you have the engineering capacity to build the pieces correctly? A poorly built DOI flow, for example one that confirms on GET, gives you the friction without the benefit.
Summary of the decision
- SOI is quicker and simpler, and it trusts the form.
- DOI is slower and takes more work, and it verifies the mailbox and produces stronger consent evidence.
- Public forms, regulated settings, and fragile reputations favour DOI.
- Authenticated sign-ups and verified addresses make SOI acceptable.
- Neither model removes the need for clear wording, unsubscribe, and list hygiene.
Exercise
A shop adds a newsletter box to its public home page. Visitors do not need an account, and the shop has had two spam trap hits in the past year. A teammate argues for single opt-in because "it will give us more subscribers." Which model would you choose, and what two points would you make in reply?
Show answer
Choose double opt-in. The form is public and anonymous, so anyone can enter any address, and the shop has already had spam trap hits, which suggests unverified addresses are reaching the list. First point: the extra subscribers from SOI are mostly typos, bots, and people who will never engage, so they add bounces, complaints, and trap risk rather than value. Second point: DOI gives a confirmation event as evidence that someone with mailbox access took a deliberate action, which supports the shop if consent is ever questioned. The loss in sign-ups is real but should be measured, not assumed.
Exercise
A DOI flow stores new subscribers with status 'pending'. A developer writes a campaign query as SELECT email FROM subscribers; and tests it on a list where every row is confirmed. What problem will appear in production, and what is the fix?
Show answer
In production the table also contains pending rows, and the query would include them, so people who have not confirmed would receive marketing mail. This defeats the purpose of DOI and can cause complaints. The fix is to filter on confirmed status, for example WHERE status = 'confirmed', and ideally to put that rule in one shared function or view so no campaign query can skip it. Tests should include pending and unsubscribed rows.