Bug 6173

Summary: Cronjob to send account expiry notices
Product: Koha Reporter: Koustubha Kale <kmkale>
Component: NoticesAssignee: Bugs List <koha-bugs>
Status: RESOLVED DUPLICATE QA Contact: Bugs List <koha-bugs>
Severity: enhancement    
Priority: P5 - low CC: jwagner
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: cronjob file

Description Koustubha Kale 2011-04-12 13:46:09 UTC
Created attachment 3897 [details]
cronjob file

This is a cronjob hacked from advanced_notices.pl to send out emails to patrons nearing account expiry.
The notice template code is hardcoded to EXP so make sure you modify only that notice template. and it can handle  borrowers.borrowernumber, borrowers.title, borrowers.firstname, borrowers.surname, borrowers.dateexpiry fields in the notice.
The number of days to expiry can be set with a command line switch -m
The script puts the emails in Koha's default message queue so its system compatible.

It can be improved in a number of ways like for create syspref for sending these reminders, and setting the days in advance.

I can submit a patch if this is useful..
Comment 1 Katrin Fischer 2014-11-02 10:53:47 UTC
Marking this duplicate of bug 6810 as this has been worked on more recently.

*** This bug has been marked as a duplicate of bug 6810 ***