Another way to do this is to simply sleep after a certain number of
emails have been sent.

Add this code within your CFOUTPUT query tag.

I personally prefer this method over meta refresh.

<cfif currentRow mod 250 eq 0>

                <!--- sleep 5 mins for every 250 emails --->

                <cfset createObject('java',
'java.lang.Thread').sleep(300000)>

<cfelseif currentRow mod 100 eq 0>

                <!--- sleep 1 min for every 100 emails --->

                <cfset createObject('java',
'java.lang.Thread').sleep(60000)>

</cfif>

Ryan Duckworth
Macromedia ColdFusion Certified Professional
Uhlig Communications
10983 Granada Lane
Overland Park, KS 66211
(913) 754-4272

  _____  

From: Donna French [mailto:[EMAIL PROTECTED]
Sent: Monday, August 09, 2004 12:51 PM
To: CF-Talk
Subject: RE: CFMail

Got it and testing it out right now. Thanks Paul!

Anyone else using this script? If so, how do you like it?

Thank you,

Donna French

-----Original Message-----
From: Paul Vernon [mailto:[EMAIL PROTECTED]
Sent: Monday, August 09, 2004 11:12 AM
To: CF-Talk
Subject: RE: CFMail

Matt Robertson has a great script for doing this on the following link!

http://mysecretbase.com/Slowing_Down_CFMAIL.cfm

Paul
  _____

  _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to