From 7e0992b76784de312d6d123748f795b8c2913834 Mon Sep 17 00:00:00 2001 From: Son Date: Mon, 14 Mar 2022 19:23:38 +0100 Subject: [PATCH] add mime version header for transactional email --- app/email_utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/email_utils.py b/app/email_utils.py index 23ca2c2f..e4a8e2e3 100644 --- a/app/email_utils.py +++ b/app/email_utils.py @@ -304,6 +304,8 @@ def send_email( date_header = formatdate() msg[headers.DATE] = date_header + msg[headers.MIME_VERSION] = "1.0" + if unsubscribe_link: add_or_replace_header(msg, headers.LIST_UNSUBSCRIBE, f"<{unsubscribe_link}>") if not unsubscribe_via_email: