diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2020-03-21 09:37:45 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2020-03-21 09:37:45 +0100 |
commit | 65692b556521f1265074d89355cb527673710400 (patch) | |
tree | e4420269f494afce400307cc2851a9e5ec1bd927 | |
parent | removed notification to bcc (diff) | |
download | newspipe-65692b556521f1265074d89355cb527673710400.tar.gz newspipe-65692b556521f1265074d89355cb527673710400.tar.bz2 newspipe-65692b556521f1265074d89355cb527673710400.zip |
msg.as_string enode the content in base64
-rw-r--r-- | newspipe/notifications/emails.py | 2 |
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() |