mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #7137 (Mail attachment)
This commit is contained in:
parent
6d8acbb5c9
commit
645507516b
@ -26,7 +26,7 @@ def create_mail(from_, to, subject, text=None, attachment_data=None,
|
|||||||
|
|
||||||
if text is not None:
|
if text is not None:
|
||||||
from email.mime.text import MIMEText
|
from email.mime.text import MIMEText
|
||||||
msg = MIMEText(text)
|
msg = MIMEText(text, 'plain', 'utf-8')
|
||||||
outer.attach(msg)
|
outer.attach(msg)
|
||||||
|
|
||||||
if attachment_data is not None:
|
if attachment_data is not None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user