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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user