summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerghei Mihai <smihai@entrouvert.com>2016-03-31 17:11:11 (GMT)
committerSerghei Mihai <smihai@entrouvert.com>2016-03-31 17:11:11 (GMT)
commitaf8c75bb88f49797f4dfe861bb8f06f44c7eb586 (patch)
tree5917749cc97cbbfaa438c55440b4d10b34c569bc
parenta1966b0d95e7ca3e6087c1c5106483b0aae9b06a (diff)
downloadmail2redmine-af8c75bb88f49797f4dfe861bb8f06f44c7eb586.zip
mail2redmine-af8c75bb88f49797f4dfe861bb8f06f44c7eb586.tar.gz
mail2redmine-af8c75bb88f49797f4dfe861bb8f06f44c7eb586.tar.bz2
return message encoding is utf-8
-rw-r--r--mail2redmine.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mail2redmine.py b/mail2redmine.py
index bcc51ba..7a39e18 100644
--- a/mail2redmine.py
+++ b/mail2redmine.py
@@ -48,7 +48,7 @@ def parse_attachment(data):
def send_mail(to, subject, message):
s = smtplib.SMTP('localhost')
from_mail = 'redmine@entrouvert.com'
- msg = email.mime.text.MIMEText(message)
+ msg = email.mime.text.MIMEText(message, 'plain', 'utf-8')
msg['From'] = from_mail
msg['To'] = to
msg['Subject'] = subject