To-Header zu E-Mail-Versand hinzugefügt

This commit is contained in:
2021-11-18 22:55:54 +01:00
parent 2841ba0063
commit 186e13ab0f
+1
View File
@@ -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 = MIMEText(content, content_type, content_charset)
msg["From"] = f"NateMan <{sender_address}>" msg["From"] = f"NateMan <{sender_address}>"
msg["To"] = f"{name} <{address}>"
msg["Subject"] = subject msg["Subject"] = subject
smtp_param = smtp is not None smtp_param = smtp is not None