Bug 29587 - Test mail option in SMTP servers
Summary: Test mail option in SMTP servers
Status: Needs Signoff
Alias: None
Product: Koha
Classification: Unclassified
Component: System Administration (show other bugs)
Version: Main
Hardware: All All
: P1 - high enhancement
Assignee: Saiful Amin
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-28 18:57 UTC by vimal kumar
Modified: 2025-11-24 11:36 UTC (History)
6 users (show)

See Also:
GIT URL:
Initiative type: ---
Sponsorship status: ---
Comma delimited list of Sponsors:
Crowdfunding goal: 0
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Bug 29587: Test mail option in SMTP servers (5.88 KB, patch)
2025-11-24 10:16 UTC, Saiful Amin
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description vimal kumar 2021-11-28 18:57:58 UTC
Dear Developers,
Here is a feature suggestion to Administration > SMTP servers.
Test mail option helpful for users to try newly added SMTP server works or not.
Comment 1 Pablo AB 2021-12-07 22:29:49 UTC
Meanwhile, after the SMTP server is selected on the library admin page, is possible to test them sending a list or the cart:
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22343#c125
And try to catch any errors
grep mail /var/log/koha/$INSTANCE/intranet-error.log
Comment 2 David Cook 2023-07-03 02:54:47 UTC
This would be a very nice enhancement. Applications like Keycloak do this by using the email address of the logged in user as the "to_address".
Comment 3 Misbahullah Jan 2024-01-23 06:51:14 UTC
(In reply to vimal kumar from comment #0)
> Dear Developers,
> Here is a feature suggestion to Administration > SMTP servers.
> Test mail option helpful for users to try newly added SMTP server works or
> not.

hello sir,
sir i have a problem, i have been updated my trigger email with smtp server password so now how i can cahnge please guide me thank you. koha 23.05.
Comment 4 Saiful Amin 2025-11-24 10:16:08 UTC
Created attachment 189906 [details] [review]
Bug 29587: Test mail option in SMTP servers

This patch adds a "Send test email" action to the SMTP servers
administration page. It sends a test message to the address in
the KohaAdminEmailAddress system preference and reports success
or failure to the user.

Test plan:
1. Add a valid SMTP server in Administration → SMTP servers.
2. Set KohaAdminEmailAddress to a valid email address.
3. Apply the patch.
4. Click "Send test email" in the Actions column.
5. Confirm that Koha reports "Test email sent successfully".
6. Edit the SMTP server and change the domain to an invalid one.
7. Click "Send test email" again.
8. Confirm that Koha reports failure.
9. Sign off.