From 186e13ab0f9a620cfaaae0434b98e0417fee3113 Mon Sep 17 00:00:00 2001 From: Niklas Elsbrock Date: Thu, 18 Nov 2021 22:55:54 +0100 Subject: [PATCH] =?UTF-8?q?`To`-Header=20zu=20E-Mail-Versand=20hinzugef?= =?UTF-8?q?=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nateman/emails.py | 1 + 1 file changed, 1 insertion(+) diff --git a/nateman/emails.py b/nateman/emails.py index 74a533d..295630d 100644 --- a/nateman/emails.py +++ b/nateman/emails.py @@ -65,6 +65,7 @@ def _send_mail(name: str, address: str, subject: str, content: str, content_type msg = MIMEText(content, content_type, content_charset) msg["From"] = f"NateMan <{sender_address}>" + msg["To"] = f"{name} <{address}>" msg["Subject"] = subject smtp_param = smtp is not None