Created
May 13, 2017 20:08
-
-
Save lindhe/a83be3994121d481574a9fb7d5a428bc to your computer and use it in GitHub Desktop.
Automatic email confirmation for Google Forms
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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