I am new to JavaScript and I need help with App Script, please.
I have a Google Sheet with three columns: Date (Data type ‘Date’), Greeting and Message (both Data Type ‘String’).
I would like to loop through the sheet and if the column date is equal to today’s date, send an email with the Greeting and Message from the corresponding row.
Would anybody, please, be able to shine a little for me?
Thanks
Question posted in Javascript
A very good W3school tutorial can be found here.
A very good W3school tutorial can be found here.
2
Answers
You’re going to need quite a bit of code for this, but here a starting point:
Google Apps Script: Send Emails on Today’s Date
This sample script checks today’s date on your Google Sheet and sends an email to your specified email address.
The sample sheet looks like this:
OUTPUT
REFERENCES
Class SpreadsheetApp
Class Sheet
Array.prototype.forEach()
Date.prototype.toDateString()
Class MailApp