经典 ASP 中的线程休眠? [英] Thread Sleep in Classic ASP?

查看:19
本文介绍了经典 ASP 中的线程休眠?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在对用经典 ASP/VbScript 编写的旧应用程序进行一些修改.

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 member list is quite large, the server rejects new e-mails after the first hundred or so are sent.

我已经编写了一些代码让它以 20 封的方式发送电子邮件,但这仍然不起作用.我认为也许让它在突发之间休眠一秒钟可能会正常工作.

I've written some code to make it send out e-mails in burst of 20, but this still doesn't work. I think that perhaps making it sleep for a second between burst might work properly.

但是,我似乎在 VbScript 中找不到 Thread.Sleep 类型的方法.

However, I can't seem to find a Thread.Sleep type method in VbScript.

有吗?

推荐答案

据我所知.您必须使用一些用 VB 类编写的外部代码或其他任何方法.

Not to my knowledge. You'll have to use some external code written in class VB or whatever to do it.

或忙等待(gak).

这篇关于经典 ASP 中的线程休眠?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆