Using loops, how can I send e-mail reminders everyday until a certain date has been established?

Using loops, how can I send e-mail reminders everyday until a certain date has been established?

This is a rental application.

I am having trouble setting up a loop to where it keeps on sending the customer an e-mail message reminder of their past due item every day until they have returned their item.

I need a loop that runs and executes the code below and stops once the customer's Actual Check In Date is reached (ActualCheckInDate)

Here is my function code so far:

  1. void emailoverduereminder.EMailOverdueReminder()
  2. {
  3.     // Please write your Form name here, which having record that dues deadline
  4.     for each fetch_rec in Client_Listings  [(ID is not null)]
  5.     {
  6.         Trigger_Date = zoho.currentdate;
  7.         Deadline_Date = fetch_rec.Check_IN_DUE_Date;
  8.         // Please use here your form field name which contain that due date on which the email have to be triggered
  9.         // checking require triggering date
  10.         if (Deadline_Date  <  Trigger_Date)
  11.         {
  12.             sendmail
  13.             (
  14.                 To       :  fetch_rec.Email_Address 
  15.                 From     :  zoho.adminuserid 
  16.                 Subject  :  "Your Tiger Bike Is Overdue!!" 
  17.                 Message  :  "<span style=\"color: rgb(51, 51, 153);\">According to our records, your Tiger Bike is overdue.  Please return your bike to the University of Memphis Bike Shop.  There is a $10.00 late fee for each day the bike is past due.<br />\n<br />\nTiger Bikes<br type=\"_moz\" />\n</span>" 
  18.             )
  19.             // Write your require information in the blue highlighted Email message. 
  20.         }
  21.     }
  22. }