Skip to content
Snippets Groups Projects
Commit 4c18fe3a authored by Robin Sonnabend's avatar Robin Sonnabend
Browse files

Merge branch 'master' into 'master'

Set Message-ID according to RFC2822

See merge request !2
parents 08c93906 58e86fc5
Branches
No related tags found
1 merge request!2Set Message-ID according to RFC2822
......@@ -83,7 +83,7 @@ class MailManager:
msg["From"] = self.from_addr
msg["To"] = to_addr
msg["Subject"] = subject
msg["Message-ID"] = "{}@{}".format(uuid4(), getfqdn())
msg["Message-ID"] = "<{}@{}>".format(uuid4(), getfqdn())
msg.attach(MIMEText(content, _charset="utf-8"))
if appendix is not None:
for name, file_like in appendix:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment