From 5f6b28ce1ffc74415a224d404136f6c38690c729 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Thu, 24 Jan 2013 21:52:39 +0100 Subject: Mail are now encoded with utf-8 (plain and html). --- source/utils.py | 4 ++-- 1 file 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 -- cgit