summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonah BrĂ¼chert <jbb@kaidan.im>2024-03-18 15:37:50 +0100
committerJonah BrĂ¼chert <jbb@kaidan.im>2024-03-18 15:37:50 +0100
commitcdf1ad9b4dc9e0561d78cd785197de3c2c77a495 (patch)
tree12c3a81e6b6dc73c0fac58b65690f7235cc79178
parent4276d691360c463e66976bdccf93b9ebfcf2e05a (diff)
downloadweb-cdf1ad9b4dc9e0561d78cd785197de3c2c77a495.tar.gz
web-cdf1ad9b4dc9e0561d78cd785197de3c2c77a495.tar.bz2
web-cdf1ad9b4dc9e0561d78cd785197de3c2c77a495.zip
Fix sending mails
-rw-r--r--accounts/backend/mail/sendmail.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/accounts/backend/mail/sendmail.py b/accounts/backend/mail/sendmail.py
index 84900db..5ac5d93 100644
--- a/accounts/backend/mail/sendmail.py
+++ b/accounts/backend/mail/sendmail.py
@@ -25,7 +25,7 @@ class SendmailBackend(Backend):
p = subprocess.Popen([self.app.config['SENDMAIL_COMMAND']] +
envelope + ['-t'], stdin=subprocess.PIPE)
- p.stdin.write(msg.as_string())
+ p.stdin.write(msg.as_string().encode("utf-8"))
p.stdin.close()
if p.wait() != 0: