How to Send an Email Based on a Google Forms Answer

Quick answer: Google Forms' own setting, Get email notifications for new responses, only tells you that a response arrived, and only to the account that turned it on. To email a different person depending on an answer, attach a short Apps Script to the form, read the answer with e.response.getItemResponses(), pick the address from a lookup table and send with MailApp.sendEmail, all on an installable On form submit trigger. Free Gmail accounts can email 100 recipients a day this way. Without code, Zapier does it with a Filter step, which needs a paid plan.

A contact form where sales questions should reach sales and support questions should reach support. A time-off request that should go to whichever manager the employee picked. A feedback survey where nobody wants an email for every five-star rating, but everyone wants to hear about a one-star. These all need the same thing: an email whose recipient depends on what the respondent answered.

Google Forms doesn't do this, but a 25-line Apps Script does, for free and without any third party seeing your responses. This guide gives you the script, explains every permission it asks for, shows how to test it and find errors, lists the sending limits, and covers the no-code route through Zapier. FormMaker, which publishes this guide, is an independent app that creates real Google Forms in your Google account; it isn't affiliated with Google, and the steps work on any Google Form.

What Google Forms sends on its own

There are two built-in emails, and neither one routes by answer:

Built-in emailWhere to turn it onWho gets itCan it depend on an answer?
New response notificationResponses tab, More (three dots), Get email notifications for new responsesThe account that turned it onNo
Copy of the responseSettings, Responses, Send responders a copy of their responseThe person who filled in the formNo

The notification is a short alert with a link to the responses; you can't change its recipient, its text or when it's sent. Our guide to response notification emails covers it, along with Google Sheets' notification rules for a daily digest. The respondent's copy is covered in sending respondents a copy of their answers. Google's help page on viewing and managing form responses also points to a Marketplace add-on for more notification options; the script below does the routing part without one.

If one of those already covers what you need, stop here. Conditional routing is worth setting up when the wrong person reading an email, or nobody reading it, actually costs you something.

Before you write any code: make the answer easy to match

The script compares the respondent's answer with a list you write. That only works if the answer comes from a fixed set of options.

The script: route each response to the right inbox

Step 1: open the form's script editor

Open the form in the editor, click the three-dot More menu at the top right and choose Apps Script. A new tab opens with a project attached to this form and an empty myFunction. This has to be the form's own script, not one opened from the response spreadsheet: the code below reads e.response, which only a form's submit trigger provides. Our Apps Script guide for Google Forms explains the difference between the two kinds of script.

Step 2: paste the code

Replace everything in the editor with this, then change the question title, options and addresses to match your form:

// The question that decides where the email goes, and an address per answer.
const ROUTING_QUESTION = 'What do you need help with?';
const ROUTES = {
  'Sales':   '[email protected]',
  'Support': '[email protected]',
  'Billing': '[email protected], [email protected]'
};
const FALLBACK = '[email protected]';   // no answer, or an answer not listed

function routeResponse(e) {
  const form = FormApp.getActiveForm();
  let topic = '';
  const lines = e.response.getItemResponses().map(r => {
    const title = r.getItem().getTitle();
    const answer = r.getResponse();
    if (title === ROUTING_QUESTION) topic = answer;
    return title + ': ' + (Array.isArray(answer) ? answer.join(', ') : answer);
  });
  const message = {
    to: ROUTES[topic] || FALLBACK,
    subject: form.getTitle() + ': ' + (topic || 'new response'),
    body: lines.join('\n')
  };
  const respondent = e.response.getRespondentEmail();
  if (respondent) message.replyTo = respondent;
  MailApp.sendEmail(message);
}

// Re-sends the most recent response through routeResponse, for testing.
function testWithLastResponse() {
  const responses = FormApp.getActiveForm().getResponses();
  routeResponse({ response: responses[responses.length - 1] });
}

Save with Ctrl+S (Cmd+S on a Mac). Here's what it does, line by line in plain terms:

Step 3: add the On form submit trigger

The code does nothing until a trigger runs it. In the script editor's left sidebar, click the clock icon (Triggers), then Add Trigger at the bottom right, and set:

Click Save. Google now asks for permission, because the trigger will run the script for you whenever someone submits.

Step 4: the permission screens, explained

  1. Choose an account. Pick the Google account that owns the form. The emails will be sent from this account, and count against its daily limit.
  2. "Google hasn't verified this app." You'll see this for any script you write yourself, because Google hasn't reviewed this project. It doesn't mean the code is harmful. Click Advanced, then Go to (your project name) (unsafe). Do this only for code you've read and understood; the code above calls nothing outside Google.
  3. The permission list. Apps Script derives it from the code:
    • A Forms permission (to view and manage your forms, or the form the script is attached to), because FormApp.getActiveForm() reads the form's title and the submitted answers.
    • Send email as you, because MailApp.sendEmail sends from your account. This is the one people hesitate over, and it's the whole point of the script. MailApp can only send; it can't read your inbox.
    If you create the trigger in code with ScriptApp.newTrigger instead of the Triggers page, you'll also see Allow this application to run when you are not present. If the screen offers a checkbox per permission, tick all of them; the script fails on any you leave out.
  4. Click Continue. The trigger appears in the list.

The project's Overview page lists everything it was granted under "Project OAuth Scopes", so you can check later what a script attached to your form is allowed to do.

How to test it, and where errors show up

Don't test by clicking Run with routeResponse selected. Run gives the function no event, so e is undefined and you'll get an error about reading response of undefined. That error only means the test was wrong, not the script. Test one of these two ways instead:

  1. Submit the live form. Open the respondent link in a private window and send one response for each routing option, using answers you'll recognize ("TEST Sales", "TEST Support"). Check each inbox, including spam.
  2. Replay the last response. Choose testWithLastResponse in the function menu and click Run. It feeds the most recent real response into routeResponse, which is handy for adjusting the email text without filling in the form again and again.

Then open Executions in the left sidebar of the script editor. Every run is listed there, whether a trigger or you started it, with its status. A failed run shows the error message and the line number when you click it. Typical ones:

When everything works, delete the test responses from the Responses tab so they don't skew your results. Keep failure notifications on: a trigger that fails silently for a week means a week of requests nobody saw.

Variations for common forms

Several recipients from a checkbox question

A volunteer form where people tick the teams they're interested in should email every matching coordinator. Replace the topic logic with a set of addresses:

  const to = new Set();
  // inside the map(), instead of "if (title === ROUTING_QUESTION) topic = answer;"
  if (title === ROUTING_QUESTION) {
    [].concat(answer).forEach(a => { if (ROUTES[a]) to.add(ROUTES[a]); });
  }
  // when building the message:
  to: to.size ? [...to].join(',') : FALLBACK,

Each address counts separately toward the daily limit, so a response that ticks four teams uses four of it.

Alert only on a low rating

For a feedback survey, skip the email unless the score needs attention. With a 1-to-5 linear scale titled "Overall rating", the answer arrives as text such as "2":

  let rating = null;
  // inside the map():
  if (title === 'Overall rating') rating = Number(answer);
  // after the map(), before sending:
  if (rating === null || rating > 2) return;   // only 1s and 2s send an email

Route to the manager the respondent picked

On a time-off or work request form, make "Your manager" a dropdown of names and map each name to an address in ROUTES. When managers change, you edit the table and the dropdown together. If the list is long or changes often, fill the dropdown from a spreadsheet, as described in populating a Google Forms dropdown from a Google Sheet, and keep the addresses in the same sheet. Our HR onboarding and PTO forms guide covers what else such a form should ask.

Copy someone on every email

Add cc: '[email protected]' to the message object. MailApp also accepts bcc, name (the sender name shown in the inbox) and htmlBody for a formatted email. CC'd addresses count toward the daily limit too.

Sending limits: how many emails a day

Apps Script counts email recipients, not emails, per account per day. As of November 2026, Google's Apps Script quotas page lists:

LimitFree Google account (gmail.com)Google Workspace account
Email recipients per day (MailApp)1001,500
Recipients per message5050
Total trigger runtime per day90 minutes6 hours
Script runtime per execution6 minutes6 minutes
Triggers per user per script2020

Google notes that quotas are per user and reset 24 hours after the first request, and that when one is exceeded the script throws an exception and stops, so the email for that response simply isn't sent. Each routed email here is a single recipient unless you list several addresses or add CCs, so a free account can route roughly 100 responses a day. That's plenty for a contact or request form, and not enough for a registration form that opens to a whole school district on one morning.

If you're close to the limit, check what's left from inside the script with MailApp.getRemainingDailyQuota(), send a daily digest instead of one email per response (a time-driven trigger that collects the day's answers), or run the trigger from a Workspace account. The limit belongs to whoever created the trigger, not the form owner, which is one more reason to create it from a shared role account on a team form.

The no-code route: Zapier with a filter

If writing code isn't an option, Zapier can do the same routing. Each route is its own Zap:

  1. Trigger: the Google Forms app, event New Form Response. Connect your Google account and pick the form. (The older route, Google Sheets New Spreadsheet Row on the form's linked response sheet, works too.)
  2. Filter: add a Filter step and set the rule Only continue if the routing question's field exactly matches "Sales".
  3. Action: Gmail Send Email to the sales address, mapping the answers into the body.
  4. Test the Zap with a real submission, turn it on, then duplicate it and change the filter value and recipient for "Support", "Billing" and so on. On paid plans, Paths can put all the branches in one Zap.

The catch is the plan. As of November 2026, Zapier's help center says Filter isn't available on the Free plan, and its pricing page limits Free to two-step Zaps checked every 15 minutes, with 100 tasks a month. Filters and Paths start on the Professional plan, listed from $19.99 a month billed annually, which checks for new data every 2 minutes. A Zap with no filter on the Free plan can still send one email per response to one fixed address, which the built-in notification already does for free.

Zapier is the better choice when the destination isn't just email: a Slack channel per team, a row in a CRM, a task in a project tool. Your responses then pass through Zapier as well as Google, so check that your school or company allows that. Setup details are in our Google Forms and Zapier guide, and the chat versions in Google Forms and Slack and Google Forms and Microsoft Teams.

Script or Zapier?

Apps ScriptZapier with a filter
CostFree with any Google accountPaid plan needed for filters
SpeedSeconds after the submissionEvery 2 minutes on Professional
Daily volume100 recipients (free account) or 1,500 (Workspace)Your plan's monthly task allowance
Who sees the responsesOnly GoogleGoogle and Zapier
SetupPaste code, add one triggerPoint and click, one Zap per route
Other destinationsPossible, but you write the codeThousands of apps

Keep it running, and keep it private

For a complete contact form to route, our website contact form guide covers the questions and the embed.

Frequently asked questions

Can Google Forms send an email to different people based on an answer?

Not with its built-in settings. Get email notifications for new responses only alerts the account that turned it on, and the respondent copy only goes to the respondent. Routing by answer needs an Apps Script with an On form submit trigger, or a tool such as Zapier with a filter.

Where is the built-in Google Forms notification setting?

Open the form, click the Responses tab, click More (the three dots) and choose Get email notifications for new responses. It sends a short alert with a link to the responses to the account that turned it on.

How many emails can Apps Script send per day?

As of November 2026, Google's Apps Script quotas page lists 100 email recipients a day for free Google accounts and 1,500 for Google Workspace accounts, with up to 50 recipients per message. The quota counts recipients, so CC addresses count too, and it belongs to the account that created the trigger.

Why does my script say e is undefined?

You ran the trigger function with the Run button, which passes no event. Test by submitting the live form, or run a helper that passes the most recent response to the function, then check the result on the Executions page.

Where do I see if the script failed?

Open the script editor and click Executions in the left sidebar. Each run is listed with its status, and a failed run shows the error message and line number. Setting the trigger's failure notifications to Notify me immediately also emails you when a run fails.

Why do all my emails go to the fallback address?

The question title or the option text in the script doesn't exactly match the form, including capitals and punctuation, or the routing question was skipped. Log the matched value with console.log and compare it with the form.

Can I route Google Forms responses without code?

Yes, with Zapier: a Google Forms New Form Response trigger, a Filter step that only continues if the answer exactly matches a value, and a Gmail Send Email action, one Zap per route. As of November 2026, Zapier's Filter step is not available on its Free plan.

Does the email come from my address?

Yes. MailApp sends from the account that created the trigger. If the form collects email addresses, the script can set the respondent's address as the reply-to, so pressing Reply answers the respondent.