Last active
October 25, 2017 07:45
-
-
Save eojji/556c1573c739e8fa182d7fd0f5af612a to your computer and use it in GitHub Desktop.
This file contains hidden or 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 processTeamForm(formObject) { | |
var name = formObject.name; | |
var title = formObject.title; | |
var comment = formObject.comment; | |
var emailRecipient = PropertiesService.getScriptProperties().getProperty('email'); | |
var url = ScriptApp.getService().getUrl(); | |
var msgBody = 'This email was sent via the gFolderCopy App.\n\n' | |
+ 'App: \n' + url + '\n\nComment: \n'+ comment | |
+'\n\nName: '+ name+' Email: '+ Session.getActiveUser().getEmail(); | |
MailApp.sendEmail(emailRecipient, title, msgBody); | |
createTeamFolder(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment