From c72c9ccc68f02f445ca39e46a3449da50f5052d5 Mon Sep 17 00:00:00 2001 From: Markus Scheidgen <markus.scheidgen@gmail.com> Date: Tue, 15 Dec 2020 11:18:23 +0100 Subject: [PATCH] Added From form field to send_email. #430 --- nomad/infrastructure.py | 1 + 1 file changed, 1 insertion(+) diff --git a/nomad/infrastructure.py b/nomad/infrastructure.py index 7509413a9f..4e8d776a92 100644 --- a/nomad/infrastructure.py +++ b/nomad/infrastructure.py @@ -495,6 +495,7 @@ def send_mail(name: str, email: str, message: str, subject: str): msg = MIMEText(message) msg['Subject'] = subject msg['To'] = name + msg['From'] = config.mail.from_address to_addrs = [email] if config.mail.cc_address is not None: -- GitLab