https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37869
--- Comment #5 from David Nind <[email protected]> --- (In reply to Kyle M Hall (khall) from comment #4) > (In reply to David Nind from comment #3) > > I had a go at testing, but I'm not seeing any messages in the logs. Any > > specific log to look in, or do I need to change the logging level? > > I'm using KTD with all the defaults. > I set up Gmail as my SMTP server. > > When I create a new patron with a primary email address I see the following > in > /var/log/koha/kohadev/plack-intranet-error.log > > [2024/09/10 13:41:27] [WARN] Plugin hook before_send_message called with the > params: $VAR1 = { > 'message_id' => 8 > }; > > The only parameter will be the message_id and this will let the plugin know > that it is not running from process_messages_queue.pl and instead is acting > on a single message! I had another go at testing using a default KTD. I'm still not seeing any warning messages in /var/log/koha/kohadev/plack-intranet-error.log when running the message queue script. 8-(.. How I tested (using KTD): 1. Set up KTD to send email using a Gmail account.[1] 2. Install version 2.5.1 of the kitchen sink plugin (download from https://github.com/bywatersolutions/dev-koha-plugin-kitchen-sink/releases/tag/v2.5.1): 2.1 Administration > Plugins > Manage plugins > Upload plugin 2.2 No restart required (although I did do this as well) 3. Add a new patron with a primary email address. 4. Before the patch, run the process message queue script: misc/cronjobs/process_message_queue.pl Plugin hook before_send_message called with the params: $VAR1 = { 'verbose' => 0, 'limit' => undef, 'where' => undef, 'letter_code' => [], 'type' => [] }; 5. Check the /var/log/koha/kohadev/plack-intranet-error.log => There should be a warning (for me, there was no warning message) [2024/09/10 13:41:27] [WARN] Plugin hook before_send_message called with the params: $VAR1 = { 'message_id' => 8 }; 6. Send the patron you created a welcome message and process the message queue as per step 4. There should be no warning message in the log. (This was the case for me.) [1] To test sending emails using a Google account: - Set up an App password for your Google Account. - Edit /etc/koha/sites/kohadev/koha-conf.xml file and add this configuration near the end (where <user_name> = your Google email address; <password> = your APP password, not your Google account password): <smtp_server> <host>smtp.gmail.com</host> <port>587</port> <timeout>5</timeout> <ssl_mode>STARTTLS</ssl_mode> <user_name>GOOGLEACCOUNTUSER</user_name> <password>GOOGLEAPPPASSWORD</password> <debug>1</debug> </smtp_server> - Restart everything: restart_all - Test by: . Adding an email address to an existing patron . Sending that patron a welcome message (Patron account > More > Send welcome message) . Run the message queue processing script: misc/cronjobs/process_message_queue.pl -- 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/
