473,231 Members | 1,519 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,231 software developers and data experts.

putting a pause into ASP?

Hi -

I have an app that I want to send out an email to each user in our member
list giving them their username & pw, but I don't want to overwhelm my mail
server since there are over 1000 users in my database.
I don't want to overwhelm my web server, either, having this app hog all
resources.
Luckily, I do have two processors running in this web server.
Note: web server and mail server are different boxes.
So... what kind of pause routine would you all put into my VBscript ASP
within the loop that sends out emails to all users?
Thanks!

--
Scotter
Jul 19 '05 #1
8 6879
*Scotter* wrote:
I have an app that I want to send out an email to each user in our
member list giving them their username & pw, but I don't want to
overwhelm my mail server since there are over 1000 users in my
database.
I don't want to overwhelm my web server, either, having this app hog
all resources.
Luckily, I do have two processors running in this web server.
Note: web server and mail server are different boxes.
So... what kind of pause routine would you all put into my VBscript
ASP within the loop that sends out emails to all users?
Thanks!


I'd write a WSH script and implement the pause via
WScript.Sleep(intMilliseconds). The script could be invoked from a shell
object under ASP.
--
Andrew Urquhart
- Contact me: http://andrewu.co.uk/contact/
- 'Staccato signals of constant information
A loose affiliation of millionaires and billionaires' - Paul Simon
Jul 19 '05 #2
On Wed, 04 Aug 2004 15:02:53 GMT, "Scotter" <sp**@spam.com> wrote:
I have an app that I want to send out an email to each user in our member
list giving them their username & pw, but I don't want to overwhelm my mail
server since there are over 1000 users in my database.
I don't want to overwhelm my web server, either, having this app hog all
resources.
Luckily, I do have two processors running in this web server.
Note: web server and mail server are different boxes.
So... what kind of pause routine would you all put into my VBscript ASP
within the loop that sends out emails to all users?


Best is none. You could delay the completion until it times out.
Script this on the server and use an ASP page to trigger it if need
be.

No normal mail server will be overwhelmed with 1,000 messages.

Jeff
Jul 19 '05 #3
http://www.aspfaq.com/2141

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Scotter" <sp**@spam.com> wrote in message
news:xU******************@fe2.texas.rr.com...
Hi -

I have an app that I want to send out an email to each user in our member
list giving them their username & pw, but I don't want to overwhelm my mail server since there are over 1000 users in my database.
I don't want to overwhelm my web server, either, having this app hog all
resources.
Luckily, I do have two processors running in this web server.
Note: web server and mail server are different boxes.
So... what kind of pause routine would you all put into my VBscript ASP
within the loop that sends out emails to all users?
Thanks!

--
Scotter

Jul 19 '05 #4
wow thanks, guys!
I think what I'll do is go for the middle ground between no pause and a 10
second pause by trying a 1 or 2 second pause.
Will this bit of SQL work with MS Access as the backend database? I suppose
I'm about to find out.
Scott
Jul 19 '05 #5
I faced this exact problem about a year ago, except for me I had more than
30,000 mails to contend with.

Best solution (for us, anyway): Persits makes a product called ASPEmail.
ASPEmail accepts timestamping of when the mail should leave the queue. I
ganged 100 BCC:'s per message, and delayed each message by 1/30000th of a
day. This solves the problem neatly, and the ASPEmail component takes care
of all of the housekeeping. Nary a problem so far.

-KF
"Scotter" <sp**@spam.com> wrote in message
news:xU******************@fe2.texas.rr.com...
Hi -

I have an app that I want to send out an email to each user in our member
list giving them their username & pw, but I don't want to overwhelm my mail server since there are over 1000 users in my database.
I don't want to overwhelm my web server, either, having this app hog all
resources.
Luckily, I do have two processors running in this web server.
Note: web server and mail server are different boxes.
So... what kind of pause routine would you all put into my VBscript ASP
within the loop that sends out emails to all users?
Thanks!

--
Scotter

Jul 19 '05 #6
ah! I'm using the Soft Artisans product as an email component. I'll check to
see if it supports a command like this. Thanks for the idea!
Scott
Jul 19 '05 #7
Another nice aspect of using someone else's hard work is that you'll
automatically have mechanisms for storing and generating stats,
success/failure... and it's probable if your machine hangs for some reason
mid-send, the component would finish the remaining messages. No way that's
going to happen if you send using a typical "dumb" looping script.

In my case I was advised that a flood of 30,000+ messages could well take
down the entire institutional mailserver, so delaying each message was a
necessity.

-KF

"Scotter" <sp**@spam.com> wrote in message
news:il*******************@fe2.texas.rr.com...
ah! I'm using the Soft Artisans product as an email component. I'll check to see if it supports a command like this. Thanks for the idea!
Scott

Jul 19 '05 #8
Cool.
Well the mail component I use doesn't support this.
BUT it does report errors and I am checking that within the loop so I'll
know if/when something goes wrong.
And I did set up the delay using the conn.execute like the guys above
suggested.
We'll see how it works.
Jul 19 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Andrew | last post by:
When will .NET have a low-pause-time garbage collector A low-pause-time garbage collector would greatly improve .NET's ability to serve as a platform for soft real-time systems. It doesn't have...
5
by: Brian.Steele | last post by:
Greetings everyone. See http://www.spiceisle.com/cgi-bin/slideshow/slideshow.cgi?dir=brian/personal/2005/uk_trip/images&type=jpg The "Pause" button works in IE, but not in Firefox. Any ideas...
11
by: Paminu | last post by:
Is there something like system("PAUSE") for linux?
38
by: Jackie | last post by:
I just want the programme to stop for a while. Thanks.
2
by: eSolTec, Inc. 501(c)(3) | last post by:
Thank you in advance for any and all assistance. Is there a way to start, pause and resume a recurrsive search exactly where you left off, say in the registry programmatically? -- Michael Bragg,...
6
by: Peted | last post by:
Hi wondering what is the best way to do this Need a user to click a button, that sends 3 or 4 string based commands via a TCP/ip socket link I can connect to the ip device no problems, am...
8
by: Lloydm | last post by:
I've used the command "pause" in batch files which works ok but I guess it's applied dirrently in c++. Using Dev C++ 4.0 and the following is my code #include<iostream> #include<iomanip>...
3
by: garfunkel214 | last post by:
I have images and text rotating every 7000 ms using a setInterval. i am trying to implement a pause button that will stop the rotation when clicked. When clicked once more, I would like the rotation...
2
by: bmerlover | last post by:
How do I use a PAUSE in .NET Framework using C++ (Visual Studio .NET 2003). I know it's system("pause") in the dos version. But I don't know what it is in the GUI version. I tried...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.