Skip to content

Instantly share code, notes, and snippets.

@JEverhart383
Created December 10, 2015 17:05
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 JEverhart383/cc1d8d2f03c5ebac5c70 to your computer and use it in GitHub Desktop.
Save JEverhart383/cc1d8d2f03c5ebac5c70 to your computer and use it in GitHub Desktop.
function formSubmitReply(e) {
var userEmail = “example@gmail.com”;
var name = e.values[2];
var letterdraft = e.values[1] + " " + e.values[2];
var letterdraftHTML = '<p>' + e.values[1] + " " + e.values[2] +' </p>';
GmailApp.sendEmail (userEmail, name, letterdraft, {htmlBody: letterdraftHTML, name: name, replyTo: e.values[4], cc: “another@gmail.com, thirdemail@gmail.com“});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment