Skip to main content
MailChannels supports two ways to let recipients opt out of future email:
  • An unsubscribe link that you place inside the message body.
  • List-Unsubscribe headers that email clients render as a native unsubscribe control.
Insert the mc-unsubscribe-url placeholder anywhere in your text/html or text/plain content. At render time, MailChannels replaces it with a unique URL that opens a one-click unsubscribe page hosted by MailChannels. To use the placeholder:
  • The content part must set template_type to mustache.
  • Each personalization must contain exactly one recipient, so the generated URL is unique to that recipient.
Only text/html and text/plain content parts are supported. The placeholder is ignored in other content types.

HTML content

Place the placeholder in the href of an <a> element so it renders correctly across email clients:

Plain text content

Include the placeholder inline:

List-Unsubscribe headers

Clients such as Gmail and Apple Mail render a native Unsubscribe control when a message carries List-Unsubscribe and List-Unsubscribe-Post headers. We automatically add both headers when the transactional field is set to false in the send request — unless you include your own List-Unsubscribe header, in which case we use yours and don’t add ours. When transactional is false, the following conditions must also be met:
  • Each personalization contains exactly one recipient
  • The email is DKIM signed