Unsubscribe feature

Updated at:

Direct Mail provides a one-click unsubscribe feature that collects unsubscribe addresses from recipients and filters them out of your mailings based on specific rules. This feature helps reduce complaint rates, improve your sender reputation, and increase your inbox placement rate.

The one-click unsubscribe feature complies with the RFC 2369 and RFC 8058 standards and is supported by major email service providers like Google, Microsoft, and Yahoo.

Note

The visibility of the unsubscribe button depends on the recipient's email client policy. For example, Gmail may not immediately display the unsubscribe button if the domain reputation is insufficient.

This topic explains how the one-click unsubscribe feature works and how to use it.

1. Unsubscribe link mechanism

The unsubscribe link is added to the List-Unsubscribe email header and does not affect your email body.

By default, Direct Mail generates an unsubscribe link for emails sent to Google, ProtonMail, Lark Mail, and specific domains, such as those that contain the keywords "gmail", "yahoo", "ymail.com", "google", "aol.com", "hotmail", or "outlook.com". An unsubscribe link is not generated for emails sent to Microsoft 365 enterprise mailboxes.

Note

An unsubscribe link is not generated for emails sent from a trigger address.

  • Example email headers

image

image

Method 1: One-click unsubscribe (Gmail example)

The email header must include List-Unsubscribe-Post: List-Unsubscribe=One-Click.

You can implement this in two ways:

  • Use the Direct Mail configuration: When you set the X-AliDM-Settings header, Direct Mail automatically adds the List-Unsubscribe-Post and List-Unsubscribe headers.

    Note

    For more information on setting X-AliDM-Settings, see Control features by using email headers over SMTP.

  • Use a custom unsubscribe URL: When sending an email over SMTP, include List-Unsubscribe-Post: List-Unsubscribe=One-Click in the email header and provide your custom one-click unsubscribe link in the List-Unsubscribe header.

image

image

Method 2: Redirect to unsubscribe page (Gmail example)

Do not include List-Unsubscribe-Post: List-Unsubscribe=One-Click in the email header.

  • Use a custom unsubscribe URL: Do not set the X-AliDM-Settings header. When sending an email over SMTP, provide your custom unsubscribe URL in the List-Unsubscribe email header.

image

image

Method 3: Insert a variable in the body

Insert the ${DM:UNSUBSCRIBE_LINK} variable into the HTML email body. Direct Mail automatically replaces it with the unsubscribe link.

Note
  • When you send emails from the console or by using an API, the system automatically replaces the variable ${DM:UNSUBSCRIBE_LINK} with an unsubscribe link.

  • When you send emails via SMTP, you must first enable data tracking for the variable to be replaced correctly. How to enable the data tracking feature?

  • HTML sample code (for API and SMTP reference only): <a href="${DM:UNSUBSCRIBE_LINK}" title="test" data-link-type="unsubscribe" target="_blank">test</a>

退订截图

2. Unsubscription list filtering mechanism

Unsubscribed addresses are added to your dedicated unsubscription list. When you send emails, Direct Mail filters recipients based on the specified filter level. If a recipient's address is on the unsubscription list, delivery will fail. Unsubscribed addresses take effect within one hour. There are three filter levels:

Sender address level: Checks if the recipient has unsubscribed from this specific sender address. If so, delivery will fail.

Sender domain level: Checks if the recipient has unsubscribed from any sender address on the current sender domain. If so, delivery will fail. We recommend using separate domains for batch email sending and triggered emails, and enabling this level for domains used for batch email sending.

Account level: Checks if the recipient has unsubscribed from all sender addresses in your cloud account. If so, delivery will fail. We recommend enabling this level if you use all your sender addresses for promotional and marketing emails.

The following table describes the link generation and filtering mechanisms for the unsubscribe feature.

Scenario

Link generation (LinkType)

Filtering mechanism (FilterLevel)

Batch email sending

Yes

Sender address level

Trigger address

No

Not filtered

User-implemented one-click unsubscribe

User's link is used

Not filtered

User-defined

User-defined

User-defined

Note

To define your own settings:

  1. To send emails over SMTP, you must configure two settings: unsubscribe link generation and the filter level. For more information, see Control features by using email headers over SMTP.

  2. To send emails by using an API, see the SingleSendMail and BatchSendMail API reference documentation.

3. Manage the unsubscription list

Unsubscribe

Recipients who no longer wish to receive your emails can click the Unsubscribe button in their email client.

If a recipient's email service provider does not display the unsubscribe link in the email header, they can find it in the email body.

image

image

Note

Currently, the language of the unsubscribe page is automatically determined by the language setting in the recipient's HTTP request header, which is set by the operating system or browser. The page does not read the lang parameter from the unsubscribe link.

Unsubscription management

If a recipient unsubscribes by mistake, the sender can remove the unsubscription record. In the Direct Mail console, go to Data Reports > Unsubscriptions to manage the list.

image

Recipients can also resubscribe by visiting the unsubscribe link again. This action automatically removes their address from the unsubscription list.

image

Unless a recipient unsubscribed by mistake, we do not recommend removing their address from the list. Doing so may cause a high complaint rate for your sender address or domain, which can lead to blacklisting by the recipient's email service provider and affect your delivery success rate.

Do not send marketing, subscription, or other types of batch emails to unsubscribed recipients. To send a verification code email or other types of triggered email, use a trigger address.

Related APIs: UnblockEmailAddress

GetBlackList