We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdb0d4b commit 8d0cc95Copy full SHA for 8d0cc95
gramps_webapi/api/util.py
@@ -28,7 +28,7 @@
28
import smtplib
29
import socket
30
from email.message import EmailMessage
31
-from email.utils import make_msgid
+from email.utils import formatdate, make_msgid
32
from http import HTTPStatus
33
from typing import Any, BinaryIO, NoReturn, Sequence
34
@@ -532,6 +532,7 @@ def send_email(
532
msg["From"] = from_email
533
msg["To"] = ", ".join(to)
534
msg["Message-ID"] = make_msgid()
535
+ msg["Date"] = formatdate(localtime=True)
536
537
host = get_config("EMAIL_HOST")
538
port = int(get_config("EMAIL_PORT"))
0 commit comments