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]
- Re: Cfmail Stevo Vee
- Re: Cfmail Stevo Vee
- cfmail Simon Whittaker
- RE: cfmail Burns, John D
- Re: cfmail Simon Whittaker
- CFFILE READ one line at a time Terry Troxel
- RE: CFFILE READ one line at a time Paul Vernon
- Re: CFFILE READ one line at a time Dick Applebaum
- Re: CFFILE READ one line at a time Novak Banda
- Re: CFFILE READ one line at a time Michael Dinowitz
- RE: CFMail Ryan Duckworth
- RE: CFMail Trevor Holm-Laursen
- Re: CFMail Matt Robertson
- RE: CFMail Ryan Duckworth
- Re: CFMail Matt Robertson
- cfmail Tangorre, Michael
- Re: cfmail Jochem van Dieten
- RE: cfmail Andrew Dixon
- RE: cfmail Ray Champagne
- RE: cfmail Tangorre, Michael
- RE: cfmail Tangorre, Michael