From 645507516b2b1d972eeebb7eb38565e89b9f22c0 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 11 Oct 2010 08:59:33 -0600 Subject: [PATCH] Fix #7137 (Mail attachment) --- src/calibre/utils/smtp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/utils/smtp.py b/src/calibre/utils/smtp.py index 230a983b74..77914bca3b 100644 --- a/src/calibre/utils/smtp.py +++ b/src/calibre/utils/smtp.py @@ -26,7 +26,7 @@ def create_mail(from_, to, subject, text=None, attachment_data=None, if text is not None: from email.mime.text import MIMEText - msg = MIMEText(text) + msg = MIMEText(text, 'plain', 'utf-8') outer.attach(msg) if attachment_data is not None: