Sending bulk email with Coldfusion
Here's an excellent write-up on sending bulk email with cfmail. However, since I've already checked for bad email addresses before sending them to the cfmail page, I've reduced my code to something far simpler, just a loop through a table that has a field marked "Yes" for those folks I want to send mail to. Near the end of the loop I then update that table, changing the field from "Yes" to "No". After the loop is a counter which shows how many emails remain to be sent. The page refreshes after five seconds and cfmail has been successfully throttled.

Archives