I have a script that is using the following script:
MailApp.sendEmail(row.shiftManager, "Holiday Approval Request", "", {htmlBody: message
Here is how I'm doing it:
//check quota and log
const emailsLeft = MailApp.getRemainingDailyQuota();
console.log( emailsLeft + " emails left in quota");
//get list of emails from spreadsheet itself
//filter out empty rows
const emails = getTab("Config").getRange("D2:D").getValues().map(function(el){ return el[0]; }).filter(function(el){ return el != '' });
//send emails from NO_REPLY email, subject and HTML body
MailApp.sendEmail({
to: emails.join(","),
subject: subject,
htmlBody: html,
noReply: true
});
getTab() and other helper functions can be found here https://github.com/tim-kozak/google-spreadsheet-helpers