summaryrefslogtreecommitdiff
path: root/addons/web/static/src/less/form_view.less
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2017-03-15 13:59:33 +0100
committerThibault Delavallée <tde@odoo.com>2017-03-16 10:06:24 +0100
commitcee15f7d90956b3e004f27f1e91e02ab59c450d1 (patch)
treea36028017defaf3c69cc38314bee1afbd0a9a72b /addons/web/static/src/less/form_view.less
parent6027e9370de7458bec6cd8a956f2a60b0eed0126 (diff)
[FIX] mail: improve exception management when sending emails
Commit 00bd7274c406fd8f69aebafcdd41dbc6b5885c96 introduced speed improvements when sending emails through batching and reusing an SMTP connection for a given batch. However exception management was slightly changed during that patch. Previously to this patch all errors in the sending process were considered as MailDeliveryException, except for MemoryError and psycopg errors. However now mail_mail.send() may raise another kind of exception in the SMTP connect process. Moreover a raise_exception parameter allows to choose to either raise an exception, or just set emails in exception state without raising an error. However since the patch it is not taken into account correctly. This leads to several issues, notably * auth_signup waits for a MailDeliveryException when sending a password request email. A badly configured SMTP server leads to a connection error that is not caught. This prevents creating users, which could be annoying. * chatter does not handle exceptions as notification emails are sent using raise_exception being False. Having an issue in the connect process crashes the chatter. This commit fixes the exception management so that it behaves like before the patch.
Diffstat (limited to 'addons/web/static/src/less/form_view.less')
0 files changed, 0 insertions, 0 deletions