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