diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-11-20 18:34:06 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-11-20 18:34:06 +0100 |
commit | 6457b5ae4d620bf4be3f6338dbe637fa70787f56 (patch) | |
tree | 05b1558c71dc8fcd5d4693ad938da017d1ed662e | |
parent | Notifications functions and functions to send emails are now in separated files. (diff) | |
download | newspipe-6457b5ae4d620bf4be3f6338dbe637fa70787f56.tar.gz newspipe-6457b5ae4d620bf4be3f6338dbe637fa70787f56.tar.bz2 newspipe-6457b5ae4d620bf4be3f6338dbe637fa70787f56.zip |
Switch To and Bcc addresses.
-rw-r--r-- | pyaggr3g470r/notifications.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pyaggr3g470r/notifications.py b/pyaggr3g470r/notifications.py index ee9a1830..94f34774 100644 --- a/pyaggr3g470r/notifications.py +++ b/pyaggr3g470r/notifications.py @@ -41,7 +41,7 @@ def new_account_notification(user): """ plaintext = """Hello,\n\nYour account has been created. Click on the following link to confirm it:\n%s\n\nSee you,""" % \ (conf.PLATFORM_URL + 'confirm_account/' + user.activation_key) - emails.send(to=conf.NOTIFICATION_EMAIL, bcc=user.email, subject="[pyAggr3g470r] Account creation", plaintext=plaintext) + emails.send(to=user.email, bcc=conf.NOTIFICATION_EMAIL, subject="[pyAggr3g470r] Account creation", plaintext=plaintext) def new_account_activation(user): """ @@ -49,7 +49,7 @@ def new_account_activation(user): """ plaintext = """Hello,\n\nYour account has been activated. You can now connect to the platform:\n%s\n\nSee you,""" % \ (conf.PLATFORM_URL) - emails.send(to=conf.NOTIFICATION_EMAIL, bcc=user.email, subject="[pyAggr3g470r] Account activated", plaintext=plaintext) + emails.send(to=user.email, bcc=conf.NOTIFICATION_EMAIL, subject="[pyAggr3g470r] Account activated", plaintext=plaintext) def new_password_notification(user, password): """ @@ -58,7 +58,7 @@ def new_password_notification(user, password): plaintext = """Hello,\n\nA new password has been generated at your request:\n\n%s""" % \ (password, ) plaintext += "\n\nIt is advised to replace it as soon as connected to pyAggr3g470r.\n\nSee you," - emails.send(to=conf.NOTIFICATION_EMAIL, bcc=user.email, subject="[pyAggr3g470r] New password", plaintext=plaintext) + emails.send(to=user.email, bcc=conf.NOTIFICATION_EMAIL, subject="[pyAggr3g470r] New password", plaintext=plaintext) def new_article_notification(user, feed, article): """ @@ -68,4 +68,4 @@ def new_article_notification(user, feed, article): html = """<html>\n<head>\n<title>%s</title>\n</head>\n<body>\n%s\n</body>\n</html>""" % \ (feed.title + ": " + article.title, article.content) plaintext = utils.clear_string(html) - emails.send(to=conf.NOTIFICATION_EMAIL, bcc=user.email, subject=subject, plaintext=plaintext, html=html)
\ No newline at end of file + emails.send(to=user.email, bcc=conf.NOTIFICATION_EMAIL, subject=subject, plaintext=plaintext, html=html)
\ No newline at end of file |