X-Git-Url: http://git.cyclocoop.org/?p=cavote.git;a=blobdiff_plain;f=main.py;h=f2db15bd7af8bec35e8fa70737f95ef1d67e58d0;hp=da8431c5a56381e9a00a02632fe8cfee2abd8ff8;hb=de9e465a93dde670ac6677f8b036e40d939cc84f;hpb=f4d357e37e0b186c35ff0958fdb0ffee5d17903e diff --git a/main.py b/main.py index da8431c..f2db15b 100755 --- a/main.py +++ b/main.py @@ -150,6 +150,7 @@ def password_lost(): "To: %s" % user['email'], "Subject: [Cavote] %s" % gettext(u"Lost password"), "Date: %s" % time.strftime("%a, %d %b %Y %H:%M:%S +0000", time.gmtime()).decode('utf-8'), + "Content-type: text/plain; charset=utf-8", "X-Mailer: %s" % VERSION, "", gettext(u"It seems that you have lost your password."), @@ -284,6 +285,7 @@ def admin_user_add(): "To: %s" % user['email'], "Subject: [Cavote] %s" % gettext(u"Welcome"), "Date: %s" % time.strftime("%a, %d %b %Y %H:%M:%S +0000", time.gmtime()).decode('utf-8'), + "Content-type: text/plain; charset=utf-8", "X-Mailer: %s" % VERSION, "", "%(text)s %(user)s!" % {"text": gettext(u"Hi"), "user": user['name']}, @@ -608,6 +610,7 @@ def admin_vote_edit(voteid): "To: %s" % user['email'], "Subject: [Cavote] %s" % gettext(u"A vote has been opened for your group"), "Date: %s" % time.strftime("%a, %d %b %Y %H:%M:%S +0000", time.gmtime()).decode('utf-8'), + "Content-type: text/plain; charset=utf-8", "X-Mailer: %s" % VERSION, "", "%(text)s %(title)s" % {"text": gettext(u"A vote has been opened and you are in a group concerned by it :"), "title": request.form['title']},