Skip to content

Instantly share code, notes, and snippets.

@Ferdi
Created November 25, 2015 15:46
Show Gist options
  • Save Ferdi/fc9e07ef86f8c89920b4 to your computer and use it in GitHub Desktop.
Save Ferdi/fc9e07ef86f8c89920b4 to your computer and use it in GitHub Desktop.
function formSubmitReply(e) {
// requester email
var userEmail = e.values[1];
var ccEmail = "techtv@mit.edu"; // should we ?
var replyToEmail = "techtv@mit.edu"; // or noReply
var subjectText = "TechTV - Thank you for your inquiry";
var bodyText =
"Dear TechTV user, \n\n" +
"Your request has been received, initiating a search of our " +
"back up sources. Given the volume of requests we are receiving, " +
"current response times may be a few days or more. We will send " +
"notification of our search results as soon as possible. \n\n" +
"Regards,";
var nameText = "ODL TechTV Team";
MailApp.sendEmail(
userEmail,
subjectText,
bodyText,
{
cc: ccEmail,
replyTo: replyToEmail,
name: nameText
}
);
//var quota = MailApp.getRemainingDailyQuota() // ~ 1500/day
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment