set a domain for message-id

This commit is contained in:
Son 2022-03-22 11:02:02 +01:00
parent a783b78a7f
commit 5b3688b6df
1 changed files with 1 additions and 1 deletions

View File

@ -298,7 +298,7 @@ def send_email(
msg[headers.FROM] = f"{NOREPLY} <{NOREPLY}>"
msg[headers.TO] = to_email
msg_id_header = make_msgid()
msg_id_header = make_msgid(domain=EMAIL_DOMAIN)
msg[headers.MESSAGE_ID] = msg_id_header
date_header = formatdate()