mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2026-01-07 00:50:05 +01:00
change send eMail to UTF-8 #63
This commit is contained in:
parent
ae0fd40e06
commit
e936298ed6
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue