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
and use a
setTimeoutto repeat the reload.So a reload afther 5 seconds:
But I rather advice using an ajax call and a
setIntervalto 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