From 5214a40c479b78efea032f35accf1b3669e6428d Mon Sep 17 00:00:00 2001 From: Julien Rabier Date: Sat, 22 Dec 2012 16:02:21 +0100 Subject: [PATCH] fix one missing utf-8 encoding --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index d772464..da8431c 100755 --- a/main.py +++ b/main.py @@ -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') -- 2.20.1