> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mailofly.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Unsubscribe Link

> RFC 8058 one-click unsubscribe headers and compliance requirements.

# Unsubscribe Links

Including an easy opt-out mechanism is legally mandated for marketing emails under CAN-SPAM, GDPR, and mailbox provider sender requirements (Gmail & Yahoo 2024 standards).

## RFC 8058 One-Click Unsubscribe

Mailofly automatically injects RFC 8058 headers into marketing campaigns:

```
List-Unsubscribe: <https://mailofly.com/unsubscribe/...>
List-Unsubscribe-Post: List-Unsubscribe=One-Click
```

This renders a native **"Unsubscribe"** button at the very top of Gmail and Apple Mail clients.

## Adding an Unsubscribe Link in HTML

Use the merge variable `{{unsubscribe_url}}` in your email footer:

```html theme={null}
<p>No longer want to receive these emails? <a href="{{unsubscribe_url}}">Unsubscribe here</a>.</p>
```


## Related topics

- [When to Add an Unsubscribe Link](/guides/sending/when-to-add-an-unsubscribe-link.md)
- [Why use Topics?](/guides/sending/why-use-topics.md)
- [Introduction](/broadcasts/introduction.md)
- [Subscriptions](/audience/subscriptions.md)
- [Email Suppressions](/sending/email-suppressions.md)
