Skip to content

Instantly share code, notes, and snippets.

@lindhe
Created May 13, 2017 20:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lindhe/a83be3994121d481574a9fb7d5a428bc to your computer and use it in GitHub Desktop.
Save lindhe/a83be3994121d481574a9fb7d5a428bc to your computer and use it in GitHub Desktop.
Automatic email confirmation for Google Forms
function confirmation(e){
const TIME = 0;
const NAME = 1;
const EMAIL = 2;
var userName = e.values[NAME];
var userEmail = e.values[EMAIL];
var subject = "Form Submitted";
var message = "Thank you," + userName + "for registering!";
MailApp.sendEmail (userEmail, subject, message);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment