# How the unsubscribe link works?
Learn how XFlow’s unsubscribe link works, why it matters, and how to choose and customize the unsubscribe experience for your restock alert emails.
## What is an unsubscribe link?
An unsubscribe link is a clickable link included in your email that allows recipients to **opt out of receiving future emails** from you.
When a customer clicks this link, they are removed from a specific email list.
## Why is it important?
Including an unsubscribe link is essential for several reasons:
* Legal compliance (e.g., CAN-SPAM, GDPR, and other email regulations)
* Improved deliverability by reducing spam complaints
* Better sender reputation
* Respecting customer preferences
* Cleaner email lists with more engaged subscribers
Without an unsubscribe option, emails may be marked as spam, which can harm your domain reputation.
## Manage unsubscription option
1. Go to **Email templates > Email settings**.
2. Under **Unsubscription option**, choose your preferred option:
* **Unsubscribe single product:** The customer stops receiving restock alerts for only the product referenced in the email. Alerts for other subscribed products remain active.
* **Unsubscribe all products (global):** The customer stops receiving all restock alerts from your store.
3. Click **Customize** to personalize your unsubscribe page.
4. Click **Save** to save your changes.
XFlow provides one **Unsubscribe link** in each email. You can only use **one unsubscription option at a time**: unsubscribe from a single product or from all products.

## Customize your unsubscribe experience
Click **Customize** under **Unsubscription option** to open the **Unsubscribe & preferences** editor. Here, you can customize the branding and content shown to customers when they unsubscribe from restock alerts.
### Unsubscribe all products

When **Unsubscribe all products** is selected, customers can unsubscribe from all back-in-stock alerts from your store at once.
You can customize:
* **Branding:** Logo, logo width, and brand color.
* **Page content:** Heading, body, and disclaimer. You can use **`{product}`** and **`{variant}`** as placeholders where applicable. XFlow automatically replaces them with the relevant product or variant information.
Customers can then click **Unsubscribe all** to stop receiving all restock notifications.
### Unsubscribe single product

When **Unsubscribe single product** is selected, customers can unsubscribe from the specific product referenced in the email.
You can customize:
* **Branding:** Logo, logo width, and brand color.
* **Unsubscribe page:** Heading, body, and disclaimer. You can use **`{product}`** and **`{variant}`** as placeholders where applicable. XFlow automatically replaces them with the relevant product or variant information.
* **Manage preferences:** Heading, body, and disclaimer for the page where customers can review and manage their product subscriptions.
In **Unsubscribe single product**, customers can also open **Manage preferences** to review and update all their restock subscriptions. From here, they can:
* Keep or remove individual product alerts
* Click **Save preferences** to apply changes
* Click **Unsubscribe all** to stop all restock alerts

## How to add an unsubscribe link
### Open the email template builder
Go to the **Email Template Builder**, highlight the text you want to insert a link into, then click the icon in the text editor.
_HIkde3VJ.jpg)
### Select the unsubscribe link
Select the **Unsubscribe link (global)** type, then click Update.
_JB0mBqri.jpg)
### You're all set - the unsubscribe link is now added ✨
The unsubscribe link will now appear in your email content.
Once saved, it will automatically generate a working unsubscribe link in the email footer when sent to customers.
_Wxhg6p10.jpg)
##