aboutsummaryrefslogtreecommitdiff
path: root/source/utils.py
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-01-24 21:52:39 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-01-24 21:52:39 +0100
commit5f6b28ce1ffc74415a224d404136f6c38690c729 (patch)
treeaec6f373dbbb09b6b5e4660717281e9113eb58de /source/utils.py
parenttest of send_mail() (diff)
downloadnewspipe-5f6b28ce1ffc74415a224d404136f6c38690c729.tar.gz
newspipe-5f6b28ce1ffc74415a224d404136f6c38690c729.tar.bz2
newspipe-5f6b28ce1ffc74415a224d404136f6c38690c729.zip
Mail are now encoded with utf-8 (plain and html).
Diffstat (limited to 'source/utils.py')
-rwxr-xr-xsource/utils.py4
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
bgstack15