Sub topic 8
Making withdrawal as easy as opting in
This chapter assumes you know how consent is collected and recorded (the sign-up form, double opt-in, and consent record chapters). It covers what happens after a subscriber changes their mind. This is general education, not legal advice.
What the rules require
Withdrawal is part of valid consent. If people can't leave easily, the consent you collected is weaker.
| Regime | Withdrawal requirement |
|---|---|
| GDPR (EU/UK) | Withdrawing must be as easy as giving consent (Article 7(3)). Tell people they can withdraw before they consent. |
| CAN-SPAM (US) | Every message needs a working opt-out. You must honor it within 10 business days and may not charge a fee or require more than a reply or a single web page visit. |
| CASL (Canada) | Every message needs a working unsubscribe mechanism. You must act on requests without delay and no later than 10 business days. |
The GDPR standard is the strictest in practice. If you opted in with one click, you should be able to opt out with one click.
Designing the unsubscribe path
Put a visible unsubscribe link in every marketing email. Link it to a page that works without a login and removes the address immediately or after one confirming click. Don't make the reason field mandatory.
Common errors:
- Requiring a login or a password reset first.
- Hiding the link in tiny, low-contrast text.
- Sending people through a long survey or a "Are you sure?" loop.
- Accepting only postal mail or a phone call when sign-up took one click.
- Processing the request in a weekly batch, so another email goes out.
- Re-importing the address later from a CRM export or an old spreadsheet.
One-click unsubscribe headers
Mail providers can show an unsubscribe button next to your message. For that, add the List-Unsubscribe and List-Unsubscribe-Post headers (RFC 8058). Large mailbox providers expect these from bulk senders. Sign both headers with DKIM, or receivers may ignore them.
from email.message import EmailMessage
def build_message(to_addr: str, token: str) -> EmailMessage:
url = f"https://example.com/unsubscribe/{token}"
msg = EmailMessage()
msg["From"] = "Example Co. <[email protected]>"
msg["To"] = to_addr
msg["Subject"] = "Your monthly newsletter"
msg["List-Unsubscribe"] = (
f"<{url}>, <mailto:[email protected]?subject=unsubscribe>"
)
msg["List-Unsubscribe-Post"] = "List-Unsubscribe=One-Click"
msg.set_content(f"This month's news...\n\nUnsubscribe: {url}\n")
return msg
if __name__ == "__main__":
print(build_message("[email protected]", "abc123"))The endpoint behind the URL must accept an HTTP POST and unsubscribe the person without further steps. The token should be opaque and tied to one subscriber, like the signed token in the double opt-in chapter.
Processing the withdrawal
Treat a withdrawal as a state change, not a deletion. Set withdrawn_at in the consent record, then add the address to a suppression list that every sending system checks before each send. If you delete the address entirely, a later import can silently add it back.
Keep the consent record, including the withdrawal timestamp. It proves you stopped when asked. Keep the minimum needed to honor the suppression, and explain this in your privacy notice.
Withdrawal from one purpose versus all
If you collect consent for separate purposes, such as a newsletter and partner offers, withdrawal from one shouldn't silently cancel or keep the others. Offer a clear choice on the unsubscribe page: stop this list, or stop all marketing. Make "stop all" the easy default for a plain one-click request, and put finer settings behind an optional link. The preference management chapter covers this.
Testing your process
- Subscribe a test address, then unsubscribe from the email link, and check that no further message arrives.
- Confirm the unsubscribe page works in a private browser window with no session.
- Run a test import containing the suppressed address and confirm it is rejected.
- Time the whole path. Aim for seconds, not days.
Exercise
A subscriber joined with one checkbox. Your unsubscribe process requires logging in, then choosing "Account", then "Email settings", then clicking "Cancel subscription". Name two problems with this under GDPR and CAN-SPAM, and give one fix.
Show answer
Under GDPR, withdrawal is harder than giving consent (one checkbox), which breaches the "as easy as" rule. Under CAN-SPAM, requiring more than a reply email or a single web page visit is not allowed. Fix: add an unsubscribe link in each email that opens a page needing no login and removes the address in one click, with List-Unsubscribe headers added for one-click support.