Merge pull request #226 from christianlouis/copilot/fix-smtp-fallback-issues

fix: add sender_email to SMTP config to decouple auth credential from From: header
This commit is contained in:
Christian Krakau-Louis
2026-05-03 23:50:49 +02:00
committed by GitHub
9 changed files with 72 additions and 3 deletions
+3 -1
View File
@@ -1256,7 +1256,9 @@ class MailProcessor:
# Create forwarding message
forward_msg = MIMEMultipart("mixed")
forward_msg["From"] = smtp_config["username"]
forward_msg["From"] = (
smtp_config.get("sender_email") or smtp_config["username"]
)
forward_msg["To"] = destination
forward_msg["Date"] = formatdate(localtime=True)
forward_msg["Message-ID"] = make_msgid()