"To"-Header von E-Mail-Versand entfernt

This commit is contained in:
2021-09-17 16:49:02 +02:00
parent 0dc0c06fb5
commit 002990b279
-1
View File
@@ -65,7 +65,6 @@ 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