Last active
March 7, 2023 16:40
-
-
Save Awashcard0/c6144a5569efd47a42919e2dbc0abd5d to your computer and use it in GitHub Desktop.
Run at https://script.google.com/
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
//config | |
var email = "" | |
var subjet = "" | |
var body = "" | |
var timesToRun = 10 | |
//no toutch | |
var times = 1 | |
function myFunction() { | |
if (times == timesToRun + 1) { | |
// +1 to make it not stop early | |
console.info("Done") | |
} else { | |
GmailApp.sendEmail(email, subject, body) | |
console.info("Sent mail", times + "/" + timesToRun) | |
times = times + 1 | |
myFunction() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment