suppress errors messages in Mailer for non-admins #3014
commit4772cf38fc777b3a865dceb9bbdde6d5854d7ea3
authorAndreas Gohr <andi@splitbrain.org>
Wed, 29 Apr 2020 17:58:59 +0000 (29 19:58 +0200)
committerAndreas Gohr <andi@splitbrain.org>
Wed, 29 Apr 2020 17:58:59 +0000 (29 19:58 +0200)
tree02576db418dcb8bf84e3b167ca5eaecb6738f0c9
parent10da1f74c98a7539ea9bdbd44a7b83b03577e7f9
suppress errors messages in Mailer for non-admins #3014

When ever a mail is sent to the current user, it is usually the only
receiver. If in that case the mail validation fails, sending the whole
mail will fail which will be signalled by a return false of the
Mailer->send() method anyway. This is already signalled to the user.

The more commoin usecase of a validation error is when other people's
addresses fail to validate. These should never be shown to a user.
inc/Mailer.class.php