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

查看:101
本文介绍了经典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.

或忙碌等待(闲聊).

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

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