I\'m trying to send emails with a 10 seconds delay between. I wrote this code:
$(document).ready(function() { for (i = 0; i < 20; i++) { setTi
You should create a function which calls itself after 5 seconds
var i=0; function sendEmailNow() { SendEmail(i); ++i; if(i<20) { setTimeout(sendEmailNow, 5000); } }