this is the code in the script:
sendSubmissionEmail();
function sendSubmissionEmail() {
var consultantEmail = '[email protected]';
{
var subject = 'New Submission Notification - Example' ;
var message = 'Hello, a new form has been submitted!';
}
// Send the email
MailApp.sendEmail(consultantEmail, subject, message);
}
It is set up to trigger from the submit on a form, but sends duplicate mails every time.