I need to have my looping mailer send out 200 emails every
minute till all
are sent. I have the code listed below that mails them all
out at once.
Novel for my 10 email tests, but when the first user uploads
5000 - 25000
there will be problem. Anyone know a place to read up more on
how to only
send 200 per batch and then time it to pause for 1 minute
(give or take)
<cfif IsDefined ('Send_Mail')>
<cfloop query="mailist">
<cfset html = #campaign.html#>
<cfset yourname = #mailist.name#>
<cfmail from="#campaign.emailfrom#" to="#mailist.email#"
failto="bounce@avemarialaw.edu"
replyto="#campaign.emailreply#"
server="*****" subject="#campaign.subject#">
<cfmailpart type="html">
<cfoutput>#replace(html,'name',yourname,"ONE")# <br
/><br />
Your name has been provided to Ave Maria School of Law by the
Law School
Admissions Council Candidate Referral Service.<br />If
you wish not to
receive future communications, <a
href="
http://www.avemarialaw.edu/mailings/optout.cfm?email=#mailist.email#&name=#mailist.name#">please
click here.</a></cfoutput>
</cfmailpart>
<cfmailpart type="text/plain">
<cfoutput>#campaign.plaintext#
Your name has been provided to Ave Maria School of Law by the
Law School
Admissions Council Candidate Referral Service.<br />If
you wish not to
receive future communications, please copy and past this link
into your web
browser
http://www.avemarialaw.edu/mailings/optout.cfm?email=#mailist.email#name=#mailist.name#
</cfoutput>
</cfmailpart>
</cfmail>
</cfloop>
This is one of the last pieces I need to have done by
tomorrow morning on
this monster problem / project. Thanks for any help!