summaryrefslogtreecommitdiffstats
path: root/accounts/backend/mail/sendmail.py
diff options
context:
space:
mode:
Diffstat (limited to 'accounts/backend/mail/sendmail.py')
-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: