Envie um único email com valores de todas as novas linhas em uma planilha (Google Script / GAS)

Graças a muitas leituras neste site, criei com êxito um script que faz o que eu queria: Ao ser executado, o script envia um email individual para cada nova linha em uma planilha e marca a linha como "enviada". Yay!

Mas agora eu preciso do script para compilar todas as linhas em várias seções em um único email. Portanto, preciso do script para verificar se há novas linhas, usar um modelo para adicionar os valores de cada nova linha em uma seção individual, compilar todas as novas seções em um email, enviar o email e marcar todas as novas linhas "enviadas".

Estou empacado porque parece que eu precisaria que cada linha recém-adicionada definisse uma variável relativa, ou seja, primeira linha não enviada = sectionOne, second = sectionTwo, etc. Mas o tamanho do email e o número de variáveis a serem definidas dependeriam no número de novas linhas. Então, eu realmente não sei como fazer o script passar por um loop e adicionar apenas (mas todo) o novo conteúdo ao corpo do email.

Aqui está o que eu tenho, alguém sabe como chegar ao objetivo aqui?

function sendEmail() {

 //setup function
 var ActiveSheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
 var StartRow = 3;
 var RowRange = ActiveSheet.getLastRow() - StartRow + 1;
 var WholeRange = ActiveSheet.getRange(StartRow,1,RowRange,11);
 var AllValues = WholeRange.getValues();

 //iterate loop
 for (i in AllValues) {

 //set current row
 var CurrentRow = AllValues[i];

 //set subject line
 var Subject = "Found by " + CurrentRow[1];

 //set HTML template for information
 var message = 
      "<p><b>Title: </b>" + CurrentRow[2] + "</p>" +
      "<p><b>Agency: </b>" + CurrentRow[3] + "</p>" +
      "<p><b>Summary: </b>" + CurrentRow[4] + "</p>" +
      "<p><b>Due: </b>" + CurrentRow[5] + "</p>" +
      "<p><b>Posted: </b>" + CurrentRow[6] + "</p>" +
      "<p><b>Total Funding: </b>" + CurrentRow[7] + "</p>" +
      "<p><b>Announcement Number: </b>" + CurrentRow[8] + "</p>" +
      "<p><b>Useful Links: </b>" + CurrentRow[9] + "</p>";

 //define column to check if sent
 var EmailSent = CurrentRow[11];

 //define who to send grants to 
 var SendTo = "[email protected]" + "," + "[email protected]";

 //if row has not been sent, then...  
 if (emailsent != "sent") {

  //set the row to look at
  var setRow = parseInt(i) + startRow;

  //mark row as "sent"
  ActiveSheet.getRange(setRow, 11).setValue("sent");

  //send the actual email  
  MailApp.sendEmail({
      to: SendTo,
      cc: "",
      subject: subject,
      htmlBody: message,
});
}
}
}

questionAnswers(2)

yourAnswerToTheQuestion