Skip to content

Instantly share code, notes, and snippets.

@rmarmorstein
Created October 15, 2013 14:08
Show Gist options
  • Select an option

  • Save rmarmorstein/6992148 to your computer and use it in GitHub Desktop.

Select an option

Save rmarmorstein/6992148 to your computer and use it in GitHub Desktop.
google scripts email spammer (Don't really spam with it) Educational purposes only.
function myFunction() {
var Email = "you@domain.com"
var Sbj = "Subject"
var msg = "Body"
var i =0 //Dont change this
var qty = 50 //Number of messages to send.
while(i<qty){
MailApp.sendEmail(Email, Sbj, msg);
i++
}
}
Copy link

ghost commented Nov 30, 2018

A tiny revision I would make: indent the MailApp script like the "i++" underneath it so it's easier to see that it's in the while loop

@Dragonbreath413
Copy link

Do you know why there is a cool down

@rmarmorstein
Copy link
Author

rmarmorstein commented Dec 4, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment