Revision f46f80e4
Added by Serghei Mihai about 7 years ago
corbo/utils.py | ||
---|---|---|
60 | 60 |
'identifier': dest}) |
61 | 61 |
unsubscribe_link = urlparse.urljoin(settings.SITE_BASE_URL, reverse( |
62 | 62 |
'unsubscribe', kwargs={'unsubscription_token': unsubscribe_token})) |
63 |
message.set_headers({'List-Unsubscribe': '<%s>' % unsubscribe_link}) |
|
63 | 64 |
message.html = orig_html.replace(UNSUBSCRIBE_LINK_PLACEHOLDER, unsubscribe_link) |
64 | 65 |
message.text = orig_text.replace(UNSUBSCRIBE_LINK_PLACEHOLDER, unsubscribe_link) |
65 | 66 |
|
Also available in: Unified diff
add unsubscription link in mail headers (#19579)