From e936298ed6f95688e14c831ec73d07014f78f4fd Mon Sep 17 00:00:00 2001 From: JHCD Date: Tue, 14 Jul 2015 17:35:58 +0200 Subject: [PATCH] change send eMail to UTF-8 #63 --- plugins/eMail/eMail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/eMail/eMail.py b/plugins/eMail/eMail.py index 2416c21..b5adb72 100644 --- a/plugins/eMail/eMail.py +++ b/plugins/eMail/eMail.py @@ -58,7 +58,7 @@ def doSendmail(server, subject, mailtext): @exception: Exception if smtp.sendmail failed """ try: - msg = MIMEText(mailtext) + msg = MIMEText(mailtext, 'plain', 'UTF-8') msg['From'] = globals.config.get("eMail", "from") msg['To'] = globals.config.get("eMail", "to") msg['Subject'] = subject