]> git.koha-community.org Git - koha.git/commit
Bug 28803: Add invalid email handling in _send_message_by_email
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 5 Aug 2021 07:00:19 +0000 (08:00 +0100)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 28 Sep 2021 08:22:36 +0000 (10:22 +0200)
commit9cfbdee6a84516de245798301916ac23705c46b7
tree211d4ab90e3eae55f3d6c01cfcb2f655a5e0f9bd
parentfb027d7a45324772e06885d64b8b382ee1fb9b1e
Bug 28803: Add invalid email handling in _send_message_by_email

This patch adds a try/catch block around the call to Koha::Email->create
to catch and handle invalid emails being passed in the parameters.

The message is marked as 'failed' with an error_code of 'INVALID_EMAIL'.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
C4/Letters.pm
koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt