add mime version header for transactional email

This commit is contained in:
Son 2022-03-14 19:23:38 +01:00
parent 79154378f2
commit 7e0992b767
1 changed files with 2 additions and 0 deletions

View File

@ -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: