0

I have this script for sending out a confirmation email after people submit a Google Form. However, the sender's email would be using my personal email address. Would there be any possibility that I can customise the sender email to another email? Thanks.

function setUpTrigger() {
  ScriptApp.newTrigger('sendConfirmationEmail')
  .forForm('1OmTcRqF5HW7kO_EpLhyqknrVb_EjbEAuDsokrDOAjTY')
  .onFormSubmit()
  .create();
}

function sendConfirmationEmail(e) {
  const recipient = e.response.getRespondentEmail();
  const subject = "Thank you for your interest in volunteering at GGHK2023";
  const body = `Your application has been received - thank you for your interest.`;
                                                                                                                                      
  GmailApp.sendEmail(recipient, subject, body);
}
Fhankyou
  • 23
  • 4

0 Answers0