title: Programming google app script to trigger at a specific time by displaying spreadsheet in email body
body: <p>I'm sending a spreadsheet in the body of an email everyday. I completed the email portion, but now im trying to program the trigger to set off at 1:15pm everyday. I'm not sure how to implement the code to trigger with the email?</p>
  
  <pre><code>'function nearMinute(minute) {
       var sendRead = ScriptApp.newTrigger("sendRead1pm")
            .timeBased()
            .atHour(13)
            .everyDays(1) // Frequency is required if you are using atHour() or atMinute()    
            .create();
  
       var ss = SpreadsheetApp.getActiveSpreadsheet();
       var sheet = ss.getSheetByName("Totals");
  
       var subjecttable = UrlFetchApp.fetch("https://docs.google.com/spreadsheet/pub?
       key=XXXXXXXXXXXXXXXXXXXXXXXXXXX=true&amp;gid=1&amp;output=html");
       var htmltable = subjecttable.getContentText();
  
       var fromName =  "DoNotReply - email";
       var rowData = ss.getRange("B16").getValues()[0];
       var emailAddress = "emailaddress@gmail.com";       // First column
       var message = {htmlBody: htmltable, name: fromName};       // Second column
       var subject = "TEST $" + rowData;
  
       MailApp.sendEmail(emailAddress, subject, "", message);
  
   }`    
  </code></pre>