Every Email Service Provider (ESP) handles unsubscribes differently. Sendwithus hooks into your ESP’s unsubscribe system, which means you will use whatever your ESP requires.
We are working towards a unified experience for all our customers, but for now, this is how you add unsubscribe links to your emails with SendGrid, Mailgun, or Mandrill.
SendGrid
SendGrid manages unsubscribes at the account/subuser level, which means customers who unsubscribe from an email will not receive any other emails sent from that SendGrid account.
To use SendGrid unsubscribes, enable the Subscription Tracking App in your SendGrid account. To learn how, visit their Subscription Tracking App support page.
Once you’ve enabled the app, it will automatically add a default unsubscribe link to the bottom of your emails.
If you decide to use a custom “replacement tag” (as defined in the Subscription Tracking App support page), we recommend using a replacement tag that looks like %sendgrid_unsub_url%
, as we know that format will render properly in our templates.
The replacement tag settings can be found under Settings->Tracking->Subscription Tracking. Check out the image below for an example:
This is what your unsubscribe link might look like with the replacement tag:
Mailgun
Enable Mailgun unsubscribes by clicking the checkbox in the Unsubscribes tab of your Mailgun Control Panel. This will automatically append the default unsubscribe link to the bottom of your emails.
You can learn more about Mailgun’s unsubscribe features in their Tracking Unsubscribes support article.
Mailgun supports three types of unsubscribes:
- Domain: if unsubscribed, a user would no longer get emails from that Mailgun account.
- Tag: if unsubscribed, a user would no longer get emails associated with that specific tag.
- Mailing List: if unsubscribed, a user would get no further emails addressed to that mailing list.
They provide a variable for each type of unsubscribe, and to use this feature you just need to include the appropriate variable in your email template:
- Domain: %unsubscribe_url%
- Tag: %tag_unsubscribe_url%
- Mailing List: %mailing_list_unsubscribe_url% For example, an unsubscribe link in an email template would look like this:
Mandrill
Mandrill uses an “unsubscribe merge tag” that you include in your unsubscribe link. Unsubscribed users are added to a “Rejection” Blocklist.
“The merge tag consists of the word UNSUB, followed by a colon, and then a full website address (with http:// or https://) where recipients should be redirected when the unsubscribe is processed.” This description is from their support article, where you can go to learn more.
This is an example of an unsubscribe merge tag: *|UNSUB:http://mywebsite.com/unsub|*
This is what your unsubscribe link might look like with the unsubscribe merge tag: