[Koha-bugs] [Bug 33221] Send WELCOME notices by sms too

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Mar 14 08:10:23 CET 2023


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

--- Comment #1 from Julian Maurice <julian.maurice at biblibre.com> ---
Created attachment 148152
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=148152&action=edit
Bug 33221: Send WELCOME notices by sms too

This affects patron creation from staff and OPAC interfaces, and also
when patrons are imported by misc/import_patrons.pl

Since it's not possible at the moment to provide an SMS number when
creating an account from OPAC, the changes at OPAC will only be useful
once that possibility is added (see bug 20859)

Test plan:
1. Enable system preference AutoEmailNewUser
2. Set system preference SMSSendDriver to 'Test'
3. Verify in "About" page that SMS::Send is installed
4. In "Notices and Slips" tool, edit the 'WELCOME' letter and verify
   that both email and sms parts are filled. Use a different title
   and body for the sms part
5. Create a new borrower with an email address and an SMS number
6. Verify in the "Notices" tab that two notices are pending, one for
   email, one for sms
7. Click on "Send welcome email" in the "More" menu
8. Verify that two new notices have been queued (like in step 6)
9. Create a 'borrowers.csv' file with the following content:

cardnumber,surname,categorycode,branchcode,email,smsalertnumber
foo,Foo,PT,CPL,foo at example.com,+33123456789

10. Import it with the following command

misc/import_patrons.pl -v -c -m cardnumber -f borrowers.csv --email-new

11. Verify that the patron has been imported and that two new notices
    have been queued (like in step 6)
12. Enable system preference PatronSelfRegistration and disable system
    preference PatronSelfRegistrationVerifyByEmail
13. Go to OPAC and register a new account with an email address
14. Verify that the email notice was queued
15. Enable PatronSelfRegistrationVerifyByEmail
16. Go to OPAC and register a new account with an email address. Go
    through the verification process
17. Verify that the email notice was queued

Sponsored-by: Médiathèque de Montauban

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


More information about the Koha-bugs mailing list