aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2020-03-21 00:04:12 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2020-03-21 00:04:12 +0100
commitfa372ae3a14f9bf22ab4706543a470d4682e7e79 (patch)
tree6bf60b5c234a7ce54d6c09cc21f348f8fa4fe9aa
parentBumped version number. (diff)
downloadnewspipe-fa372ae3a14f9bf22ab4706543a470d4682e7e79.tar.gz
newspipe-fa372ae3a14f9bf22ab4706543a470d4682e7e79.tar.bz2
newspipe-fa372ae3a14f9bf22ab4706543a470d4682e7e79.zip
removed notification to bcc
-rw-r--r--newspipe/notifications/emails.py5
-rw-r--r--newspipe/notifications/notifications.py2
2 files changed, 2 insertions, 5 deletions
diff --git a/newspipe/notifications/emails.py b/newspipe/notifications/emails.py
index 8c2f24a1..805bb4ff 100644
--- a/newspipe/notifications/emails.py
+++ b/newspipe/notifications/emails.py
@@ -52,7 +52,7 @@ def send(*args, **kwargs):
send_smtp(**kwargs)
-def send_smtp(to="", bcc="", subject="", plaintext="", html=""):
+def send_smtp(to="", subject="", plaintext="", html=""):
"""
Send an email.
"""
@@ -61,7 +61,6 @@ def send_smtp(to="", bcc="", subject="", plaintext="", html=""):
msg["Subject"] = subject
msg["From"] = application.config["MAIL_DEFAULT_SENDER"]
msg["To"] = to
- msg["BCC"] = bcc
# Record the MIME types of both parts - text/plain and text/html.
part1 = MIMEText(plaintext, "plain", "utf-8")
@@ -85,7 +84,7 @@ def send_smtp(to="", bcc="", subject="", plaintext="", html=""):
else:
s.sendmail(
application.config["MAIL_DEFAULT_SENDER"],
- msg["To"] + ", " + msg["BCC"],
+ msg["To"],
msg.as_string(),
)
s.quit()
diff --git a/newspipe/notifications/notifications.py b/newspipe/notifications/notifications.py
index df826452..633af4c3 100644
--- a/newspipe/notifications/notifications.py
+++ b/newspipe/notifications/notifications.py
@@ -47,7 +47,6 @@ def new_account_notification(user, email):
emails.send(
to=email,
- bcc=application.config["MAIL_DEFAULT_SENDER"],
subject="[Newspipe] Account creation",
plaintext=plaintext,
)
@@ -60,7 +59,6 @@ def new_password_notification(user, password):
plaintext = render_template("emails/new_password.txt", user=user, password=password)
emails.send(
to=user.email,
- bcc=application.config["NOTIFICATION_EMAIL"],
subject="[Newspipe] New password",
plaintext=plaintext,
)
bgstack15