You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Kamil Kubis (Jira)" <ji...@apache.org> on 2020/01/08 15:38:00 UTC

[jira] [Created] (AIRFLOW-6512) SMTP Reply-To configuratiopn support

Kamil Kubis created AIRFLOW-6512:
------------------------------------

             Summary: SMTP Reply-To configuratiopn support
                 Key: AIRFLOW-6512
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-6512
             Project: Apache Airflow
          Issue Type: New Feature
          Components: configuration
    Affects Versions: 1.10.7
            Reporter: Kamil Kubis


From what I can see Airflow is usingĀ smtplib module for mailing functionality.

It would be great if there was a configuration variableĀ SMTP_MAIL_REPLY_TO, which would set reply-to header if value is specified.
{code:java}
# something along those lines with some exception handling when configuration does not exist. It could also default to SMTP_MAIL_FROM
smtp_mail_reply_to = configuration.conf.get('smtp', 'SMTP_MAIL_REPLY_TO')
msg.add_header('reply-to', smtp_mail_reply_to) {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)