From 0bae60ff84a8dc8b3deb1e856757c752ac1d714e Mon Sep 17 00:00:00 2001 From: pradhanpk Date: Mon, 4 Apr 2016 06:21:59 -0400 Subject: [PATCH] Fix module path of send_email_smtp in configuration --- airflow/configuration.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/airflow/configuration.py b/airflow/configuration.py index ba4a8091778685..3905cca333b805 100644 --- a/airflow/configuration.py +++ b/airflow/configuration.py @@ -114,7 +114,7 @@ def run_command(command): 'flower_port': '5555' }, 'email': { - 'email_backend': 'airflow.utils.send_email_smtp', + 'email_backend': 'airflow.utils.email.send_email_smtp', }, 'smtp': { 'smtp_starttls': True, @@ -242,11 +242,11 @@ def run_command(command): filter_by_owner = False [email] -email_backend = airflow.utils.send_email_smtp +email_backend = airflow.utils.email.send_email_smtp [smtp] # If you want airflow to send emails on retries, failure, and you want to -# the airflow.utils.send_email function, you have to configure an smtp +# the airflow.utils.email.send_email_smtp function, you have to configure an smtp # server here smtp_host = localhost smtp_starttls = True @@ -367,7 +367,7 @@ def run_command(command): web_server_port = 8080 [email] -email_backend = airflow.utils.send_email_smtp +email_backend = airflow.utils.email.send_email_smtp [smtp] smtp_host = localhost