For simple projects I usually do this with a refresh mechanism. Simply prep the email pieces and the send to list in user variables, then process say 5 emails per execution of a "processing" TAF. Have the results of the TAF contain an auto-refresh and a minute later to do the next 5, and so on. With this method, you can also show progress to your user.
If you want something done in the background, do basically the same thing, but use a cronjob to send out the little groups. You can use a domain or custom scope variable to store the needed data. For larger mailings (I currently do about 100,000 per day) I have an elaborate queue system which holds each email in an SQL for processing by a timed function. I'll also add that many email servers have enough wits to "Try again later" when they get a little over loaded, so you might not have to worry about this at all. Oh, and if you want a real simple way to put a little space between sending the emails, check out the new @SLEEP tag. Just remember to keep an eye on your querytimout limit so you don't run out of time. Robert -----Original Message----- From: Noel Estabrook [mailto:[EMAIL PROTECTED] Sent: Saturday, October 08, 2005 1:48 PM To: [email protected] Subject: Witango-Talk: Mass E-mails I know I saw this come up at some point in the past. I have a system with a couple hundred users and I need to write a function that allows the system admin to E-mail everybody in the system from the web. I can write the function with a loop no problem, but I'm worried that it will process too fast and will clog my mail server (I'm using SmarterMail on w2003 Server). Would it be as easy as throwing some kind of delay into the loop or something, or is there a more straightforward way of making sure this doesn't happen? TIA. ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
