Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Email Google Form daily full script
function sendFormEmail() {
var toEmailAddress = "someone@gmail.com";
var htmlMessage = HtmlService.createHtmlOutputFromFile("Name-of-your-HTML-file.html").getContent();
var subject = "Subject";
var message = "Some message";
MailApp.sendEmail(toEmailAddress, subject, message, {
htmlBody: htmlMessage
});
}
function createTimeDrivenTriggers() {
// Trigger every day at 6 pm.
ScriptApp.newTrigger('sendFormEmail')
.timeBased()
.atHour(18)
.everyDays(1) // Frequency is required if you are using atHour() or nearMinute()
.create();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.