change send eMail to UTF-8 #63

This commit is contained in:
JHCD 2015-07-14 17:35:58 +02:00
parent ae0fd40e06
commit e936298ed6

View file

@ -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