[Koha-bugs] [Bug 22343] Add SMTP configuration options to Administration

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Aug 24 17:32:10 CEST 2020


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

--- Comment #116 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 109013
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109013&action=edit
Bug 22343: Make C4::Letters use the new SMTP server config

This patch makes the different methods in C4::Letters use:
- Koha::SMTP::Servers: to get the effective SMTP server for the library
  or the fallback default if no library in context.
- New Koha::Email->create method for crafting the email envelope for
  sending.

The tests are adapted so they behave the same way, but the trapped (in
the mock) $email object has the right type and its attributes are
accessed correctly.

To test:
1. Apply this patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/Letters.t
=> SUCCESS: Tests pass. YAY!
3. Sign off :-D

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


More information about the Koha-bugs mailing list