brack3t / Djrill

[INACTIVE/UNMAINTAINED] Djrill is an email backend and new message class for Django users that want to take advantage of the Mandrill transactional email service from MailChimp.
BSD 3-Clause "New" or "Revised" License
319 stars 64 forks source link

Unsubscribe Tag #90

Closed aaronlelevier closed 9 years ago

aaronlelevier commented 9 years ago

Is there an easy way to add the default Mandrill Unsubscribe link?

Or the best way to do this is through a webhook or custom link to one's own site to manage unsubscribes?

Thanks

medmunds commented 9 years ago

You can add a Mandrill unsubscribe link through with an UNSUB merge tag (which only works inside Mandrill/Mailchimp templates), or through an automatic unsubscribe footer (which is a Mandrill account setting). Here's lots of info about unsubscribing in Mandrill. Mandrill also adds a List-Unsubscribe header to every message, which gets used by the Unsubscribe features in several webmail clients.

However, the Mandrill unsubscribe link might not actually do what you want. It adds the email to your Mandrill rejection blacklist, and as they point out:

The rejection is temporary, and in many cases it doesn't make sense for people to unsubscribe from transactional emails.

So your idea to use a custom link to your own site might work better. For example, I use django-mailer on one of my sites, and have a custom unsubscribe link that adds the address to django-mailer's do-not-send list (which is permanent, unlike Mandrill's blacklist). But we effectively ignore that do-not-send list for certain transactional emails like password resets.

You could also use a Djrill webhook to catch unsubscribe events from Mandrill (e.g., when people unsubscribe through the List-Unsubscribe header), and use that to maintain your own do-not-send list in your app.

Mandrill support might be able to provide more details on the UNSUB merge tag and other Mandrill-side options. You'd have to contact them directly or on StackOverflow -- I don't think they monitor the Djrill project.

aaronlelevier commented 9 years ago

@medmunds thank you for providing such a thorough explanation of the different options. That helps a lot, and I think that I have (and other future readers of this) will have a good idea of how to correctly manage the unsubscribes with Djrill.

Thanks!