>- see footer for list info -<
Populate a temporary database table with all the emails.

Setup a scheduled job to run every half hour (or whatever), which will read
a batch of X records, loop through them, send the email, and remove them
from the database table (or update a flag, as appropriate).

At the end of each cfloop iteration, you can do this to make it pause for a
bit:
<cfset thread = createObject("java", "java.lang.Thread")/>
<cfset thread.sleep(javaCast("long", 3000))/> <!--- 3 seconds --->



On 10/24/07, Damien Gallagher <[EMAIL PROTECTED]> wrote:
>
> >- see footer for list info -<
> Hi,
>
> I need to create a function to send an email newsletter. The code will
> loop over the list so that each mail is sent to just one address.
>
> I also want to send the emails out in batches, with a short pause
> between each mail sent, and a longer pause between each batch.
>
> What would be the best way to do this in CF?
>
> Thanks, D
> _______________________________________________
>
> For details on ALL mailing lists and for joining or leaving lists, go to
> http://list.cfdeveloper.co.uk/mailman/listinfo
>
> --
> CFDeveloper Sponsors:-
> >- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -<
> >- Lists hosted by www.Gradwell.com -<
> >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help
> -<
>



-- 
\ \
Peter Boughton
blog.bpsite.net
/ /
_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

Reply via email to