Thread Sleep in Classic ASP?

后端 未结 12 2104
滥情空心
滥情空心 2021-02-05 23:10

I\'m doing some revision on an old app that is written in classic ASP/VbScript.

It has a feature to send out an e-mail to the members of the application, but because the

12条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-05 23:17

    The answer is don't use the server to wait, use the client. You can write a javascript that keeps calling Send() every second using setInterval until the queue is empty.Use an Ajax call to send one email using a server side script. Then on return of the ajax call you can also indicate in the html page that an email has been sent.

提交回复
热议问题