Automatic Email Confirmation From Google Forms in Google Sheets

In this video, learn how to create a Google Form that generates a unique ID for each response and sends a confirmation email to users, allowing them to confirm their submission via a URL.

in this video we're going to do something pretty cool we're going to create a Google form that adds a unique ID and sends a confirmation email to the people who sign up through this Google form and ask them to confirm through a URL here's a lot of moving pieces so follow along as I do this from scratch we've already created at this point our Google form and we're going to write a little bit of code so in our Google form we're getting our email and some information that's all we're going to be adding this column ID and then we're going to add a column e confirmed and we're going to get that confirmation from the URL click a lot of moving Parts we're going to have to send the email obviously but when we create that URL Automate Form Response to Confirmation Email How to Validate Email Addresses for FREE in 17 Minutes Automate Form Response to Confirmation Email How to Create a Sequential ID when Google Form Submitted to Google Sheets

that they're going to click we're going to have to deploy a web app it's all in appscript so it's fairly simple execution but it's fairly moving parts let's do this step by step let's create the unique ID for response we're going to have to create function with an event and we're going to add a trigger to that of when it's a form submission so that e will be very helpful we're going to have a variable row to know where that uh range is we're going to know variable uu ID equals utilities. get uu ID and then we're going to have the sheet is going to be called responses so variable responses Automate Form Response to Confirmation Email What Can You Automate in Google Sheets? Every single trigger available to Google Sheet users Different Kinds of Automation Automate Survey Follow Ups in Google Sheets with Google Forms and Apps Script

equals spreadsheet app.get active spreadsheet . get sheet by name responses and there so when we get a form submission we want on responses. get range get that row that we're on and the fourth column I do believe that is going to be our responses ID there put that in there set value uu ID so let's save this and set up the trigger Triggers on the left and on the bottom right once we go to triggers they'll be add trigger choose which function create ID I'm going to scroll down and do on form submit let's save that first time Automate Form Response to Confirmation Email What Can You Automate in Google Sheets? Every single trigger available to Google Sheet users Different Kinds of Automation 2 Forms 1 Sheet

we save it we'll have to authorize it once it's created let's go and fill out this form let's go to tools manage form go to Live Form we're going to put in in Focus email for now carrot time click submit let's go back and see we have our ID cool so now we have a unique ID with every single email that's sent that's every form that's submitted now we can continue with this create ID and probably we'll might rename it or we might all right well what's the next steps we need to do we've created a unique ID let's send an email with that unique ID so here we'll do I'll do mail app you can use actually we'll use Gmail app for this send email we need who it's Automate Form Response to Confirmation Email Email Yourself a Cell from a Google Sheet, Every Day Automate Form Response to Confirmation Email Create Google Form Automatically

to going to get our email e.n named values and in parentheses we're going to put the name of the value we want which is email variable email equals this so send email who it's to email who the subject confirming our body let's create a variable called body and do it separately so we go variable body equals please click this link to make sure you and then we'll add a URL what is this URL let's go up to the top and create variable URL equals and a string this string is going to be something but let's just do Automate Form Response to Confirmation Email Simply Email Yourself From a Google Sheet Email When Cell Changes

https google.com for now this we will change later plus let's add The UU ID here and let's double check that the email that we're sending when that form is submitted is the same email some ID that's uh sent go back to our form submit another response email Hardy actually we need to use a real email that we be able to access Andrew test better sheets. hello the information doesn't matter so let's see if we have any errors in our executions yep we do what is the error here okay so it says it doesn't have the permissions says click here to provide permissions maybe we Automate Form Response to Confirmation Email How to Validate Email Addresses for FREE in 17 Minutes Send Better Email When Google Form Filled Out Create New Worksheet When Google Form Submitted

didn't oh it's probably because we didn't save um we didn't add this I know why if you create the trigger after you add the email it'll authorize then and there so let's try this again submit another response there's my email hi again let's see go back back and see if there's any executions here it's running and I got an email here we go let's see it please click at this link there's the uyu ID it ends in FFA let's see if that is the correct one here FFA yep 1241 cool so we're sending an email from a form response and saying please click this link well what happens when we click Automate Form Response to Confirmation Email Simply Email Yourself From a Google Sheet Automate Survey Follow Ups in Google Sheets with Google Forms and Apps Script

that link that's what we got to do next so we're sending an email so we have a text withth confirmation with the U ID we need the user to be able to click it and what it's going to happen is we're going to find that U ID and say hey this person is confirmed you could also without The UU ID use just the email address I assume here same thing's going to happen all right let's go and do that in our appscript we're going to create a new function and it's specifically going to be called function do get with a capital G this is a very special function that once we deploy as a web app it will work as it'll give us a URL that we can use what are we going to do well in this Automate Form Response to Confirmation Email Automate Form Response to Confirmation Email Quick Follow Up Email

event actually URL we're going to have variable uu ID equals we need to be able to parse this URL second it's going to be parameter euid why is that well once we get this URL we're going to add the ID here as we're going to say plus plus quote question mark uu ID equals and we'll have this uu ID in the URL but we need to get the URL first so let's just look at this and see logger.log I'm going to save this and then I'm going to click deploy new deployment going to create a web app we're going to execute it as me Automate Form Response to Confirmation Email

anyone has access d here's the web app URL we're going to use so let's re use that here in url and this URL if we submit it with a u ID we should be logging this here so let's see if that works let's go back and submit another response email Andre better. something else submit let's go look at our email so now we have a new email and check this out out please click this link so this is the link I'm actually going to open it as a incognito window to test it cuz sometimes I will admit that weird things happen when you click this and you're already logged in to your account so we'll open it actually it's going to Automate Form Response to Confirmation Email Email When Cell Changes

give us an error here I know that we need to return something return 200 that's the code we need to say Hey you submitted we can actually create HTML service create create text I'll put actually no not HTML sorry content service do create text output you're confirmed let's do that uh we don't need to re deploy it but we do have to edit our URL because we want to keep this URL deploy manage deployments we have this we just edit it and give it the new version new URL return deploy this is the same exact Automate Form Response to Confirmation Email 43 Minutes of Google Sites and Google Sheets working together

URL is here I think so yep it is all right save it so now when we respond I wonder if it worked actually let's at executions do get here's a do get and she log Let's see we need when we go here we need to go to responses we need to find the ID and put in confirmed let's code that as well so up here we will say uu IDs list actually uid list equals need variable SS equals spreadsheet app.get active spreadsheet we're just going to add the get sheeet by name so we don't have to click that every single time or write that every single time responses. getet range a not a sorry D column so D2 Automate Form Response to Confirmation Email How to Validate Email Addresses for FREE in 17 Minutes Automate Form Response to Confirmation Email Advanced Coding Tips in Google Sheets for Programmers

Colon D get values this is an array of uu IDs for IAL Z I is less than U ID list. length i++ or create a for Loop that says hey search through these and find the one that you match if uid list I is equal to uid then what are we going to do we're going to go to responses. getet Range go to the row I + one and the column which is five or

E five set value confirmed let's deploy manage deployments going to give it the new version new stuff click deploy done now let's test it send in an email send in something else and let's go look here he should be cre created email should be sent here is our email and Link in incognito window you're confirmed but let's see if we have put it in here yes oh we did but it's on the wrong row oh no let's go fix that that should be an easy fix this should Automate Form Response to Confirmation Email Automated Email Series with Google Sheets | Mailchimp Clone!

be oh is this not right oh because we're and looking at the seconds we actually add two here that should be it now we're done fantastic so we can test that again we got all the way through I want to test it again and share with you some troubles that you might run into with your emails let's go and fill out another response so if we use an email here that is not a Gmail account of anyone it's going to have some issues sending like Hotmail has some issues weird email sometimes I would say about 5% of emails fail when people enter them in themselves so you may have some issues there are you done we're almost done and go to our email and Automate Form Response to Confirmation Email How to Validate Email Addresses for FREE in 17 Minutes Email When Cell Changes

look for a confirmation email that we have it it's not in our email yet H there it is just got there so it took a minute so that happens sometimes the Gmail sending from Google Sheets doesn't happen immediately it does have to go through Google Drive a bit this one we're going to click this link we're just going to open it in cognito window someone else would click it normally you're confirmed let's go back and double check confirmed oh it's still you know what I made a little bit of an error go back to our editor we saved this with s+2 but we didn't deploy it so Automate Form Response to Confirmation Email 43 Minutes of Google Sites and Google Sheets working together

any changes we do with the do get we have to also deploy let's go deploy that new version add one more row deploy now it should work so that's another issue that may come up and we have the same if you save any kind of edits to this you get make sure you deploy it submit another response there we go we've sent it and we'll look for our email in our inbox or outbox this one sent pretty quick let's look at it and be able to click it in incognito window again normal people if you're not logged in anyone else is going to be able to just click that link and get here you're confirmed let's see are we let's confirm Automate Form Response to Confirmation Email 43 Minutes of Google Sites and Google Sheets working together

yes we got the right row finally so we have been able to send a email when someone submits the form with their email box address with their email address and we're able to create a unique ID we're able to send that unique ID through email with an confirmation URL to say hey please confirm that you're actually getting this and we run into some troubles but all of your emails are going to be from your spreadsheet owner account so if you're doing this in someone else's account they're going to send those emails emails must be sendable from any Automate Form Response to Confirmation Email How to Validate Email Addresses for FREE in 17 Minutes Automate Form Response to Confirmation Email Email When Cell Changes

Gmail so again any emails that are weird or odd might not send but hopefully you don't run into many issues and you have fun with this if you doing this yourself sending an email confirmation with a URL with a unique ID let me know how you do I really want to see these out in the wild these new automations and app scripts awesome thanks for watching Automate Form Response to Confirmation Email Simply Email Yourself From a Google Sheet Automate Form Response to Confirmation Email Automated Email Series with Google Sheets | Mailchimp Clone!

Big Year 2027 calendar: the whole year on one Google Sheet

Free 2027 calendar.

Copy it to your Google Drive.

Free. No password, no card. The sheet link shows up right here.