Skip to main content

How It Works

Use the {{unsubscribe}} template variable in your email body. SendPost replaces it with a unique unsubscribe URL for each recipient. Include it in both htmlBody and textBody. When a recipient clicks the unsubscribe link:
  • They’re added to your account’s suppression list
  • Future emails to that recipient are automatically dropped
  • You receive an unsubscribed webhook event (if webhooks are configured)

Examples

HTML email:
Plain text email:
Styled unsubscribe link:
unsubscribe is a reserved custom field name. You cannot use it as a custom field name in your customFields object.
The unsubscribe link is unique for each recipient and email. Once a recipient clicks the unsubscribe link, they are immediately added to your suppression list, and you will receive an unsubscribed webhook event (if webhooks are configured).