return message encoding is utf-8
This commit is contained in:
parent
a1966b0d95
commit
af8c75bb88
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue