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

--- Comment #17 from Olivier Hubert <[email protected]> ---
Created attachment 201963
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=201963&action=edit
Bug 42870: added field for JSON configuration and fixed XOAUTH2 plugin

Test plan with SMTP LOGIN (basic SMTP):
0. Apply the patch.
1. Upgrade the database by running
   sudo koha-upgrade-schema kohadev
2. perl /usr/share/koha/bin/devel/install_plugins.pl \
    --include Koha::Plugin::Core::Email::Transport::SMTP::Basic
3. perl build-resources.PL
4. restart_all
5. Go to Administration > Plugins, locate the line for the Basic SMTP Email
Transport
   plugin, then click on "Actions" and click "Enable"
6. Go to Administration > SMTP servers and click "New SMTP server"
7. Note a new field "Transport module:" which has options of "Default"
    and "Basic SMTP Email Transport" available in a select list.
8. Fill in the details however you like (ideally using a real functional SMTP
server)
9. Click "Submit"
10. Note the "Transport module:" displaying under "Current default
configuration"
11. Click on "Edit" next to your SMTP server
12. Change the "Transport module" and click "Submit"
13. Note that the module changes with the modification
14. If possible, try to send an email by going to a patron record
    (e.g.
http://localhost:8081/cgi-bin/koha/members/notices.pl?borrowernumber=51)
    updating the primary email, clicking "More" and clicking "Send welcome
notice".
15. As your Koha instance user (ie using koha-shell), run the following:
    perl /usr/share/koha/bin/cronjobs/process_message_queue.pl -v
16. If you have a valid SMTP server configured, it should send the email using
your
    selected email transport module

Test plan with SMTP XOAUTH2:
0. Apply the patch.
1. Upgrade the database by running
   sudo koha-upgrade-schema kohadev
2. perl /usr/share/koha/bin/devel/install_plugins.pl \
    --include Koha::Plugin::Core::Email::Transport::SMTP::XOAUTH2
3. perl build-resources.PL
4. Ensure you have at least Authen-SASL-2.18 installed, by running
   sudo cpanm Authen::SASL
5. restart_all
6. Go to Administration > Plugins, locate the line for the XOAUTH2 SMTP Email
Transport
   plugin, then click on "Actions" and click "Enable"
7. Go to Administration > SMTP servers and click "New SMTP server"
8. Note a new field "Transport module:" which has options of "Default"
    and "XOAUTH2 SMTP Email Transport" available in a select list.
9. Fill in the details however you like (ideally using a real functional SMTP
server)
10. Click "Submit"
11. Note the "Transport module:" displaying under "Current default
configuration"
12. Click on "Edit" next to your SMTP server
13. Change the "Transport module" and click "Submit"
14. Note that the module changes with the modification
15. If possible, try to send an email by going to a patron record
    (e.g.
http://localhost:8081/cgi-bin/koha/members/notices.pl?borrowernumber=51)
    updating the primary email, clicking "More" and clicking "Send welcome
notice".
16. As your Koha instance user (ie using koha-shell), run the following:
    perl /usr/share/koha/bin/cronjobs/process_message_queue.pl -v
17. If you have a valid SMTP server configured, it should send the email using
your
    selected email transport module

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to