Browse Source

Fix, the mail title cause an unexpected error

master
tr4ck3ur des JM2L 9 years ago
parent
commit
a378555846
1 changed files with 4 additions and 5 deletions
  1. +4
    -5
      jm2l/__init__.py

+ 4
- 5
jm2l/__init__.py View File

@@ -41,13 +41,12 @@ def mailer_tasks(config):
# Prepare Plain Text Message :
Mail_template = Template(filename='jm2l/templates/mail_plain.mako')
mail_plain = Mail_template.render(request=request, User=StaffUser, Contact=Contact, action="Tasks", output_encoding='ascii',)
mail_plain = Mail_template.render(request=request, User=StaffUser, Contact=Contact, action="Tasks")
# Prepare HTML Message :
Mail_template = Template(filename='jm2l/templates/mail_html.mako')
mail_html = Mail_template.render(request=request, User=StaffUser, Contact=Contact, action="Tasks", output_encoding='ascii',)
mail_html = Mail_template.render(request=request, User=StaffUser, Contact=Contact, action="Tasks")
# Prepare Message
message = Message(subject="[JM2L] Rappel des Tâches pour les JM2L",
message = Message(subject="[JM2L] Rappel des Tâches pour les JM2L".decode('utf-8'),
sender="contact@jm2l.linux-azur.org",
recipients=[StaffUser.mail],
body=mail_plain, html=mail_html)
@@ -93,7 +92,7 @@ def main(global_config, **settings):
config.add_static_view('vendor', 'static/vendor', cache_max_age=3600)
config.add_static_view('upload', 'upload', cache_max_age=3600)
config.add_static_view('resources', 'resources', cache_max_age=3600)
# ICal Routes
config.add_route('progr_iCal', '/{year:\d+}/JM2L.ics')



Loading…
Cancel
Save