https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37216
David Nind <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #3 from David Nind <[email protected]> --- Testing notes (using KTD): 1. For Part B step 3, I also ran a yarn build and restart_all. 2. For Part B step 9, I repeated steps 3-6 (I think you need to run the database updates?), I also ran a yarn build and restart_all. 3. For step 10, see the consolidated test plan below for bug 12802 - Send notices using several email addresses. 12802 - Test plan ~~~~~~~~~~~~~~~~~ This enhancement (added in 24.05) allows libraries to choose which patron email address(es) to use when sending notices. To use, select the email address(es) for sending notices using the EmailFieldPrimary system preference. If the "selected addresses" option is chosen, then use EmailFieldSelection to choose which email address(es) to use - you can select one or more addresses (alternate, primary, secondary, or all email addresses). 1. Go to Koha Administration > System preferences. Search for EmailFieldPrimary. Confirm that you can only select one option at a time. 2. Search for a patron. Put different email addresses in each of the possible email fields (primary email, secondary email, alternate email). TIP: If you only have one Gmail address, put the dot in a different position and check the to field when you receive the email. For example, [email protected], [email protected], and [email protected]. 3. Repeat steps 4-6 for each of these options to confirm that the correct email address(es) are used for the email message: 3.1 EmailFieldPrimary = alternate email 3.2 EmailFieldPrimary = card number (change the patron's card number to a valid email address) 3.3 EmailFieldPrimary = primary email 3.4 EmailFieldPrimary = secondary email 3.5 EmailFieldPrimary = selected addresses with EmailFieldSelection = all, then individually - alternate email, primary email, secondary email 3.6 EmailFieldPrimary = first valid email address For testing, remove the primary email address - email address used should be the secondary email (This uses the EmailFieldPrecedence system preference, and uses the order specified and sends to the first valid email address - default order checked is email|emailpro|B_email, where email = the primary email address, emailpro = the secondary email address, B_email = the alternate email address) 4. Send the welcome message for the patron: go to your patron > More > Send a welcome email 5. Check that the correct address(es) are shown in the database for the option you are testing: 5.1 Access the database: sudo koha-mysql kohadev 5.2 Show the messages in the queue: select * from message_queue; 5.3 Confirm that correct address(es) for the option selected are shown in the to_address field (multiple address will be separated by a comma) 6. Set up KTD so that it can actually send email [1] (without email configured you will not be able to confirm the delivery to multiple addresses). 7. Run misc/cronjobs/process_message_queue.pl to trigger sending the queued notices from steps 3-6. 8. Check that the addresses in the to_address all actually receive the notice for each of the messages generated for steps 3 to 5. TIP: The notices section for the patron now shows the to addresses in the delivery column. [1] To test sending emails using a Google account: - Set up an App password for your Google Account - Configure a new SMTP Server under Administration > SMTP servers using the following settings where 'User name' = your Google email address and 'Password' = your APP password, not your Google account password): Host: smtp.gmail.com Port: 587 Timeout: 120 SSL: STARTTLS User name: GOOGLEACCOUNTUSER Password: GOOGLEAPPPASSWORD - Set this server as default -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
