Is there a way of pausing a script in CF MX 6? I want to send out 200 emails, wait 60 seconds before executing another cfmail batch of 200. I have got the following code after the cfmail tag both of which are nested in an index loop which has a value from 1 to 12.
<cfset sec = Second(Now())> <cfset secs = 0> <cfset TimeSpan = 60> <cfloop condition="secs LT TimeSpan"> <cfif sec IS NOT Second(Now())> <cfset sec = Second(Now())> <cfset secs = secs + 1> </cfif> </cfloop> But the server hangs and has crashed once. Is there an elegant and efficient way to do this? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:202518 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54