[Koha-bugs] [Bug 28803] process_message_queue.pl dies if any messsages in the message queue contain an invalid to_address

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Sun Sep 26 20:12:10 CEST 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28803

--- Comment #46 from Joonas Kylmälä <joonas.kylmala at iki.fi> ---
Created attachment 125344
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=125344&action=edit
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 at bywatersolutions.com>

Signed-off-by: Joonas Kylmälä <joonas.kylmala at iki.fi>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list