Commit 584a1c5e authored by Nicolas Joyard's avatar Nicolas Joyard

Ajustement mail

parent 27412b2e
......@@ -98,12 +98,11 @@ def setup_routes(app):
db.session.add(action)
db.session.commit()
subject = 'Envoi d\'une demande de documents à %s' \
% parl.nom_complet
subject = 'Transparence IRFM - Envoi d\'une demande de documents'
body = render_template('text/mail_envoi.txt.j2',
parlementaire=parl)
msg = Message(subject=subject, body=body,
sender=('Transparence IRFM',
sender=('Regards Citoyens',
app.config['ADMIN_EMAIL']),
recipients=[session['user']['email']])
mail.send(msg)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment