mirror of
https://github.com/simple-login/app.git
synced 2024-09-28 20:51:29 +02:00
fix replace_header
This commit is contained in:
parent
8b67a13581
commit
e335ae7d52
@ -114,7 +114,11 @@ class MailHandler:
|
||||
|
||||
# add custom header
|
||||
msg.add_header("X-SimpleLogin-Type", "Forward")
|
||||
msg.replace_header("Reply-To", forward_email.reply_email)
|
||||
try:
|
||||
msg.add_header("Reply-To", forward_email.reply_email)
|
||||
except ValueError:
|
||||
# the header exists already
|
||||
msg.replace_header("Reply-To", forward_email.reply_email)
|
||||
|
||||
LOG.d(
|
||||
"Send mail from %s to %s, mail_options %s, rcpt_options %s ",
|
||||
|
Loading…
Reference in New Issue
Block a user