Fix #7137 (Mail attachment)

This commit is contained in:
Kovid Goyal 2010-10-11 08:59:33 -06:00
parent 6d8acbb5c9
commit 645507516b

View File

@ -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: