Skip to content

Instantly share code, notes, and snippets.

@eojji
Last active October 25, 2017 07:45
Show Gist options
  • Save eojji/556c1573c739e8fa182d7fd0f5af612a to your computer and use it in GitHub Desktop.
Save eojji/556c1573c739e8fa182d7fd0f5af612a to your computer and use it in GitHub Desktop.
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