I'm trying to make an email form with extjs 4 that sends an email to 12000 company members at a time.
The server wouldnt hold that large number at one time, so im trying to write a function that generates the sending method every three messages or something.
Does anybody know of a suitable function? Sample code? Or a way to refresh an extjs form every few seconds/minutes/etc?
Not sure that's the best approach. But for refreshing a page it's basic javascript
document.location.reload(true)
and use a setTimeout
to repeat the reload.
So a reload afther 5 seconds:
var t = setTimeout(function(){document.location.reload(true)}, 5000);
But I rather advice using an ajax call and a setInterval
to repeat every x ms so you wouldn't have to reload any page at all!
An even cleaner approach is to handle it on the backend.
Another helpful article
Another helpful article