Commit 5214a40c authored by Julien Rabier's avatar Julien Rabier

fix one missing utf-8 encoding

parent 71482ea9
......@@ -162,7 +162,7 @@ def password_lost():
gettext(u"If you think this mail is not for you, please ignore and delete it.")
), "\r\n")
server = smtplib.SMTP(SMTP_SERVER)
server.sendmail(EMAIL, [user['email']], BODY)
server.sendmail(EMAIL, [user['email']], BODY.encode('utf-8'))
server.quit()
flash(u"Un mail a été envoyé à " + user['email'], 'info')
return render_template('password_lost.html')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment