diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2017-06-17 23:23:42 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2017-06-17 23:23:42 +0200 |
commit | 5f32d3700080425c45b196641f81389ab67b3695 (patch) | |
tree | 36c92245b0691e4bee489cf8ae367c42e416b0cd /src | |
parent | Closes #33. (diff) | |
download | newspipe-5f32d3700080425c45b196641f81389ab67b3695.tar.gz newspipe-5f32d3700080425c45b196641f81389ab67b3695.tar.bz2 newspipe-5f32d3700080425c45b196641f81389ab67b3695.zip |
Get the 'from email' address via the configuration module.
Diffstat (limited to 'src')
-rw-r--r-- | src/notifications/emails.py | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |