mirror of
https://github.com/simple-login/app.git
synced 2025-02-21 22:32:56 +08:00
add mime version header for transactional email
This commit is contained in:
parent
79154378f2
commit
7e0992b767
1 changed files with 2 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue