One-click unsubscribe
This page is for administrators and communication teams. Withdrawing consent must be as easy as giving it, and large mailbox providers require one-click unsubscribe from bulk senders. Exponential's mail gate adds both to every optional mail (Privacy standards: CAN-SPAM Act and one-click unsubscribe).
Note This page describes features and common practice; it is not legal advice. Check the law that applies to your organization with your legal counsel.
Contents
What every optional mail carries
Added by expMailGate::decorate():
- a footer with the reason the person gets the mail, an Unsubscribe link and a link to their preference page;
List-Unsubscribe: an HTTPS link tomailpreferences/unsubscribe/<token>;List-Unsubscribe-Post: List-Unsubscribe=One-Click(RFC 8058, building on RFC 2369).
The gate never rewrites From, Reply-To or Subject. Essential mail (password reset, activation, orders) is kept
separate and carries no advertising. The project rates this Complies for mail that goes through the mail gate.
What happens on a click
- No login, no form token and no cookie needed; a POST with
List-Unsubscribe=One-Clicktakes effect at once. - Links do not expire by default.
- The change is recorded in the consent log with its source.
- On the preference page, Turn off all optional e-mail stops every optional kind at once.
What the site must add
- The sender's postal address in the footer:
mailpreferences.ini [FooterSettings] OrganisationNameandOrganisationAddress(Sender details on the status page). Without them optional mail goes out without an address. - A category on every commercial or optional mail: mail sent without
eZMail::setCategory()gets no footer and no unsubscribe link. - DKIM signing of the headers: done by the mail server.
- Per-recipient sending: keep the default;
SplitRecipients=disabledsends to several recipients at once withoutList-Unsubscribe. - The site secret in
settings/override/mailpreferences.ini.append.phpbacked up: without it, links in mail already sent stop working.
Checking
php bin/php/console exp:mail:status --allow-root-user # five times okThen send a test mail of an optional category to a test mailbox and look at its headers for List-Unsubscribe and
List-Unsubscribe-Post. Test the gate without sending as described in
Testing the gate without sending mail.
Related pages
- Privacy standards
- Mail preferences for administrators
- The suppression list
- Free documentation: this page is free to copy, translate and improve under the GNU FDL 1.3.
Become an Exponential Partner
Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.