aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2020-03-21 09:37:45 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2020-03-21 09:37:45 +0100
commit65692b556521f1265074d89355cb527673710400 (patch)
treee4420269f494afce400307cc2851a9e5ec1bd927
parentremoved notification to bcc (diff)
downloadnewspipe-65692b556521f1265074d89355cb527673710400.tar.gz
newspipe-65692b556521f1265074d89355cb527673710400.tar.bz2
newspipe-65692b556521f1265074d89355cb527673710400.zip
msg.as_string enode the content in base64
-rw-r--r--newspipe/notifications/emails.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/newspipe/notifications/emails.py b/newspipe/notifications/emails.py
index 805bb4ff..296e793d 100644
--- a/newspipe/notifications/emails.py
+++ b/newspipe/notifications/emails.py
@@ -85,6 +85,6 @@ def send_smtp(to="", subject="", plaintext="", html=""):
s.sendmail(
application.config["MAIL_DEFAULT_SENDER"],
msg["To"],
- msg.as_string(),
+ msg.as_bytes().decode(encoding='UTF-8'),
)
s.quit()
bgstack15