Can't Find What You Need?
Have a Suggestion?
Browse by Category
In order to receive the Google Form responses via email, you will need to create a Google Apps Script to email responses each time someone submits a form.
Replace the content in the editor with with the following code, update the email recipients and email subject values in between the quotes, then click the “Save project” icon:
function onFormSubmit(e) { const formResponse = e.namedValues; const emailRecipients = 'EMAIL1,EMAIL2'; // Enter email addresses separated by a comma all between a single set of quotes const emailSubject = 'SUBJECT'; // Enter email subject line between quotes let htmlBody = ''; // Loop through each form response and add the form question and response to the htmlBody (email content) for the email for (let question in formResponse) { let response = formResponse[question].toString(); htmlBody += `<p>${question}: ${response}</p>`; } GmailApp.sendEmail(emailRecipients, emailSubject, '', { htmlBody: htmlBody }); }
Be sure to update the ‘EMAIL1,EMAIL2’ values with the actual email addresses you want to receive the form submission responses. You can enter only one email address or multiple email addresses separated by a comma. Your email addresses must be in between a single set of quotes.
Be sure to update the ‘SUBJECT’ value to the text you want to include in your email subject line.
In the “Add Trigger” model, update the “Select event type” dropdown to “On form submit” and click “Save”.
Since we only have one function and we created it from the Google Sheet, the “Choose which function to run” and “Select event source” should be set correctly by default. However, please confirm that “Choose which function to run” is set to “onFormSubmit” (the name of the function we pasted above) and “Select event source” is set to “From spreadsheet” since this script will need to be triggered each time a new form is submitted and the response is added to the Google Sheet.
Because the script will need access to your Google account to send email, you will need to grant the script project access to your Google account in order to proceed and save the trigger. Please follow the prompts to allow access.
From the editor, click the “Run” button to initialize onFormSubmit function.