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: henridam...@koha-fr.org
        ReportedBy: kmk...@anantcorp.com
         QAContact: koha-bugs@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.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://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/

Reply via email to