X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=main.py;h=da8431c5a56381e9a00a02632fe8cfee2abd8ff8;hb=d7630610678fb6de2e4fc8bcfd3ab8c7e47518a0;hp=d772464667f1d582a029762fd6c5d28634f7979e;hpb=71482ea95ddeb20aab4ad186b22ecf11ef2616a3;p=cavote.git 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')