]> 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)
committerKyle M Hall <kyle@bywatersolutions.com>
Mon, 22 Nov 2021 11:42:13 +0000 (06:42 -0500)
commita9b364a58811284f950d645fab9e6a7f6293eb08
treef14dbffcf6b52bb3190c3de5f85c41a5c88f2595
parent850308faaba761be908239d1e84f435570c6e2f3
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>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
C4/Letters.pm
koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt