Gmail can show its own unsubscribe button beside your name when your email carries two special headers and passes Google's checks. Adding the headers doesn't guarantee that it appears.
The two headers
List-Unsubscribe-Post: List-Unsubscribe=One-Click
List-Unsubscribe: <https://example.com/unsubscribe/abc>
When someone clicks, Gmail sends a request to that address. Your system must remove them without asking them to sign in or confirm.
Who must have it
Google requires it for marketing and subscribed messages from anyone sending more than 5,000 messages a day to Gmail accounts. It says messages such as password resets don't need it.
Google also says the people who get an email, not Google, decide whether it's promotional. So don't assume a sales email is exempt.
How fast to act
Google's FAQ lists unsubscribe requests not honored within 48 hours as a reason to lose delivery support.
Why it doesn't show
- Google shows it only for messages that pass its automatic checks.
- A sender with sudden volume or many spam reports may not get it.
- One of the headers may be missing.
In Gmail's newer Manage subscriptions page, people can also see senders in one place and leave.
For setup, see one-click unsubscribe.
Common questions
Should a small cold email sender add it?
An easy way out is good for everyone. It gives people a choice other than the spam button.
Is a link in the email enough?
For senders over the limit, no. They need both the headers and a clear link.