I've developed a script to assign editors to a spreadsheet, but I'm looking to personalize the emails sent to them. The screenshot below illustrates the step where I can input a message for the email recipients who have been granted access.
function send_emails(){
var ss = SpreadsheetApp.getActiveSheet();
var lr = ss.getLastRow();
for (var i=1;i<=lr;i++){
var ID = ss.getRange(i, 3).getValue();
var MCP = ss.getRange(i, 4).getValue();
var MCVP_1 = ss.getRange(i, 5).getValue();
DriveApp.getFileById(ID).addEditors([MCP,MCVP_1]);
}
}