From 5f32d3700080425c45b196641f81389ab67b3695 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Sat, 17 Jun 2017 23:23:42 +0200 Subject: Get the 'from email' address via the configuration module. --- src/notifications/emails.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/notifications') diff --git a/src/notifications/emails.py b/src/notifications/emails.py index 0ae6519a..1546041c 100644 --- a/src/notifications/emails.py +++ b/src/notifications/emails.py @@ -116,7 +116,7 @@ def send_sendgrid(to="", bcc="", subject="", plaintext=""): sg = sendgrid.SendGridAPIClient(apikey=conf.SENDGRID_API_KEY) mail = Mail() - mail.from_email = Email('info@newspipe.org') + mail.from_email = Email(conf.NOTIFICATION_EMAIL) mail.subject = subject mail.add_content(Content('text/plain', plaintext)) -- cgit