One-click unsubscribe: the List-Unsubscribe header
In Gmail, Yahoo and Apple Mail, many newsletters show an Unsubscribe button at the top. That button doesn't come from the text of the email, but from a header: List-Unsubscribe. If you send a newsletter yourself, that header is now a must. In this article you'll read what it does and how to check that it's set up correctly.
Two headers
Headers are the lines above the actual email that you normally don't see. There are two for unsubscribing:
List-Unsubscribe: <https://nieuwsbrief.jouwdomein.nl/afmelden?id=8f3a2c>, <mailto:afmelden@jouwdomein.nl?subject=afmelden> List-Unsubscribe-Post: List-Unsubscribe=One-Click
List-Unsubscribeprovides a web address and optionally an email address the recipient can use to unsubscribe.List-Unsubscribe-Poststates that one-click unsubscribe works (RFC 8058). When the recipient clicks Unsubscribe, their email client sends a request to the web address and they're unsubscribed right away. No extra page, no logging in, no "are you sure?".
When is it required?
Gmail and Yahoo require one-click unsubscribe in marketing and subscription email from senders who send a lot of mail (from around 5,000 per day to Gmail). An unsubscribe request must be processed within 2 days. Even if you're smaller, the button helps: people who can unsubscribe easily are less likely to click "Report spam". Read more about those requirements in The requirements of Gmail, Yahoo and Microsoft for bulk senders.
How to set it up
- Through a newsletter service: usually you don't need to do anything. A good service adds both headers itself and processes the unsubscribes. Do check it with a test email.
- With a plugin or your own software: check the settings to see whether the software supports
List-Unsubscribeand one-click unsubscribe. If you build it yourself, follow the rules from RFC 8058: the web address uses https, contains a unique code per recipient, doesn't redirect to another address, and only unsubscribes on a POST request. Simply visiting the link (GET) must not unsubscribe, because virus scanners automatically open links in email. Both headers must be covered by the DKIM signature.
It's best not to send a newsletter to a large audience through your hosting package. A daily sending limit applies there. Read May I send a mailing through my hosting package at WebOké?
Checking the headers
- Send your newsletter to one of your own Gmail addresses.
- Open the email, click the three dots on the right and choose Show original.
- Search for
List-Unsubscribe. Does it contain an https address, withList-Unsubscribe-Post: List-Unsubscribe=One-Clickbelow it? - Find the
DKIM-Signatureline. Afterh=you'll see the headers that have been signed.List-UnsubscribeandList-Unsubscribe-Postshould be among them.
Consent
Unsubscribing is the flip side of consent. In the Netherlands, you may only send advertising by email to people who gave their consent in advance, with an exception for your own customers regarding similar products. A confirmed subscription (double opt-in) gives you proof. The Netherlands Authority for Consumers and Markets (Autoriteit Consument & Markt) explains the rules on its page about spam.
Want to learn more? Take the free course Email in order, lesson 7.2 Consent, unsubscribing and a clean list.
