diff options
Diffstat (limited to 'ick2')
-rw-r--r-- | ick2/sendmail.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ick2/sendmail.py b/ick2/sendmail.py index 0b0d34e..423b9f6 100644 --- a/ick2/sendmail.py +++ b/ick2/sendmail.py @@ -85,8 +85,8 @@ class Sendmail: def get_log(self, log): msg = email.message.Message() - msg.set_payload(log) - msg.add_header('Content-Type', 'text/plain') + msg.set_payload(log.encode('utf-8')) + msg.add_header('Content-Type', 'text/plain; charset=utf-8') msg.add_header( 'Content-Disposition', 'inline', filename='build.log') return msg |