Sub topic 9
Confirming the Unsubscribe Link and Legal Footer
This chapter covers the part of a campaign that is easiest to forget and most costly to get wrong: the unsubscribe mechanism and the legal footer. It assumes you can already run a test send to a seed list, know what a merge tag is, and can read basic HTML links. It does not give legal advice. Rules differ by country and change over time, so treat the points below as a testing guide and have your legal or compliance contact confirm the exact wording for your markets.
Why this check matters
A broken unsubscribe link causes harm in three ways:
- Recipients who cannot leave your list click "report spam" instead. Spam complaints damage your sender reputation and can push future campaigns into the junk folder.
- Many jurisdictions require a working opt-out and a valid sender identity in commercial email. Examples include the CAN-SPAM Act in the United States, GDPR and the ePrivacy rules in the EU and UK, and CASL in Canada.
- Mailbox providers such as Gmail and Yahoo expect bulk senders to support easy unsubscribing, including a one-click option in the message headers.
Pre-send testing is the only point where you can catch a footer problem cheaply. After the send, the message is in thousands of inboxes and cannot be edited.
What a compliant footer contains
Requirements vary, but a footer for commercial email usually needs these items:
| Element | What to check |
|---|---|
| Unsubscribe link | Present, visible, and working |
| Sender identity | Your organization's real name, matching the From name closely enough that recipients recognize it |
| Physical postal address | Present where your jurisdiction requires it (CAN-SPAM does) |
| Reason for receiving | A short line such as "You are receiving this because you signed up at example.com" |
| Preference or manage-subscription link | Optional but useful, and lets people reduce frequency instead of leaving |
| Privacy policy link | Present and pointing to the current policy |
The footer is often a shared template block. Check it in every campaign anyway. A footer that was correct last quarter may contain an old address, a closed office, or a policy link that now returns a 404.
Two unsubscribe mechanisms
A message can offer an opt-out in two places, and you should test both.
- The visible link in the body. This is the link in the footer that a person clicks.
- The
List-Unsubscribeheader. This is a header, not visible content. Mail clients read it and show their own "Unsubscribe" button near the sender name. Bulk-sender rules from large mailbox providers ask for a one-click variant, which uses a second header,List-Unsubscribe-Post.
Most email platforms add these headers for you when you use their built-in unsubscribe tag. If you replace that tag with a hand-written link, the header may disappear or point somewhere different from the body link. That mismatch is a common cause of failures.
List-Unsubscribe: <https://example.com/unsub?token=abc123>, <mailto:[email protected]>
List-Unsubscribe-Post: List-Unsubscribe=One-ClickYou can read these headers in a received test message by opening "Show original" (Gmail) or "View message source" (other clients).
How the unsubscribe link works
The link in a real send contains a token that identifies the recipient. The platform replaces a tag with that personalized URL when it builds each message.
That fence is not valid for this format, so the real diagram follows.
The key point is that unsubscribing changes data on your side. A link that loads a nice confirmation page but does not update the list is a failure, and you only find out by checking the list afterwards.
Testing the link in a test send
Test sends often behave differently from real sends here. Many platforms replace the unsubscribe tag with a dummy link, or with a link that shows a "this is a test" notice, so that testers do not unsubscribe real contacts by accident. Read your platform's documentation to learn what your tool does.
Work through these steps:
- Send the test to a seed address that you own and that is stored as a contact in the list.
- Confirm the footer shows the unsubscribe link and that the link text is readable against the background, including in dark mode.
- Hover over the link, without clicking, and read the destination URL. It should be on your platform's or your own domain, use HTTPS, and not contain a raw unreplaced tag such as
{{ unsubscribe_url }}. - Open the message source and confirm the
List-Unsubscribeheader exists. - If the platform supports it, click the link in a test that uses a real unsubscribe token for a seed contact. Confirm the confirmation page loads.
- Check the contact record. The status should now be unsubscribed or suppressed.
- Resubscribe or recreate the seed contact so the next test still works.
- Try sending to the unsubscribed seed contact in a new test. A real send should skip it.
Step 8 is the one teams skip. It proves that the suppression is honored, which is the thing the law and your recipients care about.
Scripting a footer check
You can automate part of this by checking a saved copy of the email HTML. The script below looks for an unsubscribe link, a postal address pattern you configure, and leftover unreplaced tags. It reads the file passed on the command line.
import re
import sys
REQUIRED_PHRASES = ["unsubscribe"]
ADDRESS_HINT = re.compile(r"\d+\s+\w+.*\b\d{4,5}\b") # crude: street number and postcode
LEFTOVER_TAG = re.compile(r"\{\{[^}]*\}\}|\[\[[^\]]*\]\]|\*\|[^|]*\|\*")
def check(html):
problems = []
lowered = html.lower()
for phrase in REQUIRED_PHRASES:
if phrase not in lowered:
problems.append(f"missing text: {phrase}")
links = re.findall(r'<a[^>]+href="([^"]+)"[^>]*>(.*?)</a>', html, re.S | re.I)
unsub_links = [href for href, text in links if "unsubscribe" in text.lower()]
if not unsub_links:
problems.append("no link whose text contains 'unsubscribe'")
for href in unsub_links:
if not href.startswith("https://"):
problems.append(f"unsubscribe link is not HTTPS: {href}")
if not ADDRESS_HINT.search(html):
problems.append("no postal address pattern found")
for tag in LEFTOVER_TAG.findall(html):
problems.append(f"unreplaced tag in saved copy: {tag}")
return problems
with open(sys.argv[1], encoding="utf-8") as f:
found = check(f.read())
if found:
print("\n".join(found))
sys.exit(1)
print("footer checks passed")Run it on the HTML of a received test message, not on your template. A template legitimately contains merge tags, so the "unreplaced tag" warning only means something on a rendered copy. Even then, some platforms leave the unsubscribe tag in test sends on purpose. Treat the script as a prompt for a manual look, not a verdict. The address pattern is deliberately crude and will need adjusting for your country's address format.
Common errors
- Link hidden by styling. Tiny grey text on a grey background technically exists but is not usable. Check contrast and font size on mobile.
- Image-only footer. If the footer is an image and images are blocked, the unsubscribe option disappears. Keep the footer as live text.
- Unsubscribe link tracked through a broken redirect. Click tracking wraps most links in a redirect. If the unsubscribe link is wrapped by a tracker that has expired or uses a different domain, it may fail. Confirm the final landing page.
- Wrong list scope. Some platforms unsubscribe the contact only from one list or segment, while the person expected to leave all marketing email. Check what the confirmation page promises and what the record shows.
- Slow processing. Some regimes set a deadline for honoring opt-outs, such as 10 business days under CAN-SPAM. Your platform should do it immediately, but automations or imports from other systems may lag. Confirm no other tool re-adds the address.
- Login required. Making a person sign in, pay, or give more than their email address to unsubscribe is a common compliance failure.
- Copied footers. A footer copied from another brand or region may carry the wrong company name or address.
- Transactional versus marketing. A purely transactional message, such as a receipt, usually has different rules, but mixing promotional content into it can make it count as marketing. Ask your compliance contact where your line is.
Reviewing the preference center
If your footer links to a preference center, test it as its own page. It should load on mobile, show the current settings for the seed contact, save changes, and offer a clear "unsubscribe from all" option. Changes should show in the contact record. A preference center that saves nothing is worse than none, since people believe they have changed their settings.
Add it to the checklist
Record the result of each check, with the date and who did it, so the pre-send sign-off in the final chapter has evidence behind it. A short entry such as "Footer: address current, unsubscribe works, suppression verified, header present, tested 26 Nov" is enough.
Exercise
A test send shows an unsubscribe link, and clicking it loads a page that says "You have been unsubscribed". Name two further checks you should make before declaring the footer verified.
Show answer
First, check the contact record (or suppression list) to confirm the seed contact's status actually changed. Second, send another test to that contact and confirm it is skipped. You should also confirm the List-Unsubscribe header exists in the message source and that the footer shows the current postal address.
Exercise
Why should the footer-check script be run on a received test message instead of on the template file?
Show answer
The template contains unreplaced merge tags by design, so the leftover-tag check would always fail on it. A received message shows the final HTML after the platform has filled in the tags and built the unsubscribe URL, which is what recipients see.