Disable the fail_silently option for emails

It is obviously a bad idea to fail silently if something go wrong
when the connection with the mail server is being established. This was
enabled in the `_traitement_post` method.
This commit is contained in:
Martin Pépin 2017-03-15 18:21:26 +00:00
parent c513794474
commit c4edff717d

View file

@ -263,7 +263,7 @@ def _traitement_post(request, demande):
frommail, [demande.email],
[bccaddress],
headers={'Reply-To': replyto}))
connection = mail.get_connection(fail_silently=True)
connection = mail.get_connection(fail_silently=False)
connection.send_messages(mails_to_send)
lock_table(PetitCoursAttributionCounter, PetitCoursAttribution, User)
for matiere in proposals: