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')