[Koha-bugs] [Bug 26922] SendAlerts does not correctly handle error on sending emails

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Nov 19 17:16:05 CET 2020


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

--- Comment #3 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 113828
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113828&action=edit
Bug 26922: Better error handling in SendAlerts

This patch makes SendAlerts display a better error message when sending
fails.

To test:
1. Set KohaAdminEmailAddress to admin at example.org
2. Edit a vendor, set a valid email address
3. Create a new basket, a new order. Send the basket
=> FAIL: As you did not configure a valid SMTP server, the email is not sent
and logs displayed "unable to establish SMTP connection to (localhost) port
25", with the stracktrace.
4. Apply this patch and reload all
5. Repeat 3
=> SUCCESS: A simpler message is displayed, the stacktrace remains in
the logs
6. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>

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


More information about the Koha-bugs mailing list