[Koha-bugs] [Bug 12802] Send notices using several email addresses

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Dec 20 02:38:42 CET 2023


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

--- Comment #127 from Aleisha Amohia <aleisha at catalyst.net.nz> ---
Created attachment 160091
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=160091&action=edit
Bug 12802: Update notice_email_address method to return a list

This patch updates the notice_email_address method to return a comma
separated list of addresses as expected by Email::Sender if you wish to
send mail to multiple To addresses.

To test:

1. Install database update and restart services
2. Go to Koha Administration -> system preferences. Search for
EmailFieldPrimary. Confirm the options show as checkboxes and you can select
multiple.
3. Search for a patron. Put different email addresses in each of the possible
email fields (i.e. primary email, secondary email, alternate email).
4. Make sure 'first valid' is checked in EmailFieldPrimary.
5. Go to your patron, click the More dropdown and send a welcome email.
6. In your terminal, go into the database to view the message queue.

sudo koha-mysql instance
select * from message_queue\G

7. Confirm your welcome email is visible, with ONLY the first valid email in
the to_address field.
8. Select other combinations of emails in EmailFieldPrimary. Uncheck 'first
valid'
9. Send another welcome email to the same patron, then run the message_queue
SQL query again.
10. Confirm your welcome email is visible and shows all selected addresses
concatenated by , in the to_address field.

Sponsored-by: St Luke's Grammar School & Pymble Ladies' College

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


More information about the Koha-bugs mailing list