I am having trouble figuring out how to put an unsubscribe link in my email that is SMTP integrated with Mailgun.
Any thoughts?
Mailgun provides you with several unsubscribe variables:
1) %unsubscribe_url%
-- link to unsubscribe recipient from all messages sent by given domain
2) %tag_unsubscribe_url%
-- link to unsubscribe from all tags provided in the message
3) %mailing_list_unsubscribe_url%
-- link to unsubscribe from future messages sent to a mailing list
If you include these variables in your emails, any recipient that clicks on the url will be automatically unsubscribed and those email addresses will be blocked from receiving future emails from that domain or message tag as appropriate.
reference https://documentation.mailgun.com/user_manual.html#tracking-unsubscribes
You can use it in a href link:
<a href="%unsubscribe_url%" target="_blank">Click here to unsubscribe</a>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With