Jelajahi Sumber

fix case where reply-to is already present

Son NK 5 tahun lalu
induk
melakukan
8b67a13581
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      email_handler.py

+ 1 - 1
email_handler.py

@@ -114,7 +114,7 @@ class MailHandler:
 
 
                 # add custom header
                 # add custom header
                 msg.add_header("X-SimpleLogin-Type", "Forward")
                 msg.add_header("X-SimpleLogin-Type", "Forward")
-                msg.add_header("Reply-To", forward_email.reply_email)
+                msg.replace_header("Reply-To", forward_email.reply_email)
 
 
                 LOG.d(
                 LOG.d(
                     "Send mail from %s to %s, mail_options %s, rcpt_options %s ",
                     "Send mail from %s to %s, mail_options %s, rcpt_options %s ",