I originally was going implement the throttling code but maybe this plugin will suffice...
Basically I have a CGI script which is run every 5 minutes. This script runs a query to select *all* subscribers who should receive an email and begins iterating the array (potentially huge 100K+) calling on Swift to deliver the good news.
I have read several times that SMTP servers do not always respond well to constant bombardment, so throttling is typically implemented...
How does Swift implement this? Does it use sleep()?
I would like to limit the number of emails per minute to whatever my SMTP hosting service suggests (60 a minute, 1000 a minute, whatever). It would be pretty groovy if I could just delegate this handling to Swift. As opposed to calling the sleep() manually.