diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-01-24 21:52:39 +0100 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-01-24 21:52:39 +0100 |
commit | 5f6b28ce1ffc74415a224d404136f6c38690c729 (patch) | |
tree | aec6f373dbbb09b6b5e4660717281e9113eb58de | |
parent | test of send_mail() (diff) | |
download | newspipe-5f6b28ce1ffc74415a224d404136f6c38690c729.tar.gz newspipe-5f6b28ce1ffc74415a224d404136f6c38690c729.tar.bz2 newspipe-5f6b28ce1ffc74415a224d404136f6c38690c729.zip |
Mail are now encoded with utf-8 (plain and html).
-rwxr-xr-x | source/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/utils.py b/source/utils.py index 115fffd9..75ba6b07 100755 --- a/source/utils.py +++ b/source/utils.py @@ -158,8 +158,8 @@ def send_mail(mfrom, mto, feed_title, article_title, description): msg['To'] = mto # Record the MIME types of both parts - text/plain and text/html. - part1 = MIMEText(text, 'plain') - part2 = MIMEText(html, 'html') + part1 = MIMEText(text, 'plain', 'utf-8') + part2 = MIMEText(html, 'html', 'utf-8') # Attach parts into message container. # According to RFC 2046, the last part of a multipart message, in this case |