[Koha-bugs] [Bug 6173] New: Cronjob to send account expiry notices

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Apr 12 15:46:09 CEST 2011


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=6173

             Bug #: 6173
           Summary: Cronjob to send account expiry notices
    Classification: Unclassified
 Change sponsored?: ---
           Product: Koha
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: Notices
        AssignedTo: henridamien at koha-fr.org
        ReportedBy: kmkale at anantcorp.com
         QAContact: koha-bugs at lists.koha-community.org


Created attachment 3897
  --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=3897
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..

-- 
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.


More information about the Koha-bugs mailing list