diff options
-rw-r--r-- | newspipe/notifications/emails.py | 5 | ||||
-rw-r--r-- | newspipe/notifications/notifications.py | 2 |
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, ) |