diff options
Diffstat (limited to 'src/jwebmail/webmail.py')
-rw-r--r-- | src/jwebmail/webmail.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/jwebmail/webmail.py b/src/jwebmail/webmail.py index 76eff57..8c839d3 100644 --- a/src/jwebmail/webmail.py +++ b/src/jwebmail/webmail.py @@ -1,3 +1,4 @@ +import email.utils import mimetypes from email.message import EmailMessage from io import BytesIO @@ -215,6 +216,8 @@ def sendmail(): mail["From"] = current_user.id mail["To"] = form.send_to.data mail["Subject"] = form.subject.data + mail["Date"] = email.utils.localtime() + mail["Message-ID"] = email.utils.make_msgid() if form.cc.data: mail["Cc"] = form.cc.data |