Created
November 25, 2015 15:46
-
-
Save Ferdi/fc9e07ef86f8c89920b4 to your computer and use it in GitHub Desktop.
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 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