我如何修改此 Google 脚本以从 Google sheet 中的 E 列提取电子邮件?

How do I modify this Google script to pull the email from column E in the Google sheet?

我的问题是如何从 Google Sheet 这个脚本是从哪里拉出来的? E 列包含一个电子邮件值,该值因使用表单的用户而异,我们需要脚本在每次填写时专门发送到该地址。

任何建议都会很有帮助。我找到了类似和相关的帖子,但没有完全像这样的帖子。我还在超级用户中发帖,因为我不确定应该把它放在哪里。

function sendFormByEmail(e) 
{    
  // Enter email address for form respondent below.
  var email = “example@quest.com"; 

  var s = SpreadsheetApp.getActiveSheet();
  var headers = s.getRange(1,1,1,s.getLastColumn()).getValues()[0];    
  var message = "";
  var subject = "Instructional Rounds: ";

E 列是第 5 列。使用数字 5 作为列。 var email = s.getRange(2,5).getValue();从第 2 行第 5 列的单元格中获取值