ServicesProductsDocsBlogConsultingAboutContactBook a free call

Free resource

Free Google Sheets Daily Task Reminder Script (Your First Apps Script)

A free Apps Script that emails you every morning with the tasks due today and anything overdue, straight from a Google Sheet. Copy the sheet or the code and set it up in 10 minutes. It runs in your own Google account, no monthly fee.

Make a copyOpens Google with your own copy. Nothing is shared with us.

Set it up

  1. Click Make a copy (the code comes with it), or make a tab named Tasks with four columns in this order: Task, Client, Due date, Done (a checkbox), then open Extensions > Apps Script and paste the code.
  2. In the editor, put your own address in email: and save.
  3. Click Run. Google asks for permission: Review permissions, then Advanced > Go to Daily Task Reminder. It's your own script, in your own account.
  4. Tick Select all, then click Continue. The boxes start unchecked; if you skip them the script can't read the sheet or send email. The example rows are dated today, so the first run sends you a test email.
  5. Open Triggers (the clock icon) > Add Trigger: function sendTodayReminders, event source Time-driven, Day timer, 7am to 8am. Save. A copy of the sheet never brings a trigger with it, so this step is always yours.

The full script

daily-task-reminder.gs
// Emails you every task due today (and anything overdue).
// Columns on the Tasks sheet: Task | Client | Due date | Done
const SETTINGS = {
  sheet: 'Tasks',
  email: 'you@example.com',
};

function sendTodayReminders() {
  if (SETTINGS.email === 'you@example.com') throw new Error('Put your own email in SETTINGS first.');
  const ss = SpreadsheetApp.getActive();
  const rows = ss.getSheetByName(SETTINGS.sheet).getDataRange().getValues();
  const tz = ss.getSpreadsheetTimeZone();
  const day = (d) => Utilities.formatDate(d, tz, 'yyyy-MM-dd');
  const today = day(new Date());
  const due = [];

  for (let i = 1; i < rows.length; i++) {
    const [task, client, date, done] = rows[i];
    if (!task || done === true || !(date && date.getTime)) continue;
    if (day(date) === today) due.push(`${task} (${client})`);
    else if (day(date) < today) due.push(`${task} (${client}): OVERDUE since ${day(date)}`);
  }

  if (due.length) {
    MailApp.sendEmail(SETTINGS.email, `${due.length} tasks due today`, due.join('\n'));
  }
}

Common mistakes

Error: Put your own email in SETTINGS first.
The address in email: is still you@example.com. Replace it with yours, save, and run again.
An error about permission for MailApp.sendEmail or the spreadsheet.
You clicked Continue without ticking the boxes. Run the script again and tick Select all this time.
The run completes but no email arrives.
Nothing was due. A task is listed only when its Due date is a real date (not text like "next Tue"), the date is today or earlier, and Done is unticked. Also check your spam folder.
The email comes at 7:40, not 7:00.
That's normal. A day timer runs at some minute inside the hour you pick, in the time zone shown under the time box. Change the zone in Project Settings if it isn't yours.

We value your privacy

We use essential cookies to make our site work. With your consent, we may also use non-essential cookies to improve user experience and analyze website traffic. By clicking "Accept", you agree to our website's cookie use as described in our Cookie Policy.