I created an online submission form on tally.so linked to a Google Sheet. I also wrote a script that should send an email once the sheet has been updated with the form's answer, but the email doesn't seem to send.
Here is what I've wrote. Thank you in advance:
var ss = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("FormSubmission");
const rData = e.source.getActiveSheet().getRange(e.range.rowStart,1,1,18).getValues();
...
if (e.range.columnStart == 3){
MailApp.sendEmail({
to: "abc@gmail.com",
subject: "New Request",
htmlBody: msg,
noReply: true
});
}
}