[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 22:01:36 CET 2020


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

Victor Grousset/tuxayo <victor at tuxayo.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #113828|0                           |1
        is obsolete|                            |

--- Comment #9 from Victor Grousset/tuxayo <victor at tuxayo.net> ---
Created attachment 113849
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=113849&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>
Signed-off-by: Victor Grousset/tuxayo <victor at tuxayo.net>

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


More information about the Koha-bugs mailing list