diff options
author | Jonah BrĂ¼chert <jbb@kaidan.im> | 2024-03-18 15:37:50 +0100 |
---|---|---|
committer | Jonah BrĂ¼chert <jbb@kaidan.im> | 2024-03-18 15:37:50 +0100 |
commit | cdf1ad9b4dc9e0561d78cd785197de3c2c77a495 (patch) | |
tree | 12c3a81e6b6dc73c0fac58b65690f7235cc79178 /accounts/backend | |
parent | 4276d691360c463e66976bdccf93b9ebfcf2e05a (diff) | |
download | web-cdf1ad9b4dc9e0561d78cd785197de3c2c77a495.tar.gz web-cdf1ad9b4dc9e0561d78cd785197de3c2c77a495.tar.bz2 web-cdf1ad9b4dc9e0561d78cd785197de3c2c77a495.zip |
Fix sending mails
Diffstat (limited to 'accounts/backend')
-rw-r--r-- | accounts/backend/mail/sendmail.py | 2 |
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: |