All,
I use a similar script to the below to send emails from a google spreadsheet:
// Sends an email when .......
function emailInfoRequired(row) {
va
You could even make it more elegant by using a html table like this :
// Sends an email when .......
function emailInfoRequired(row) {
var sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
var subject = "Info Needed: " + sheet.getRange("F19").getValues();
var recipients = "testmail@gmail.com"
var data = sheet.getRange('A2:C25').getValues();// define your range here
var message = '';// change eventually the color here
for (var row=0;row'+data[row][col]+'';
}
message += ' ';
}
message += '
';
MailApp.sendEmail(recipients, subject, "", {htmlBody: message});
}
Illustration example :