forked from DGNum/gestioCOF
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:
parent
c513794474
commit
c4edff717d
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue