In another post (http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/ASP/Q_22522448.html
) I was looking for a method to choose 5 (at random) sections/units/groups, etc.. from my company for every day specified between two dates. In simplest terms this could be thought of as creating a "chore list" ... Choose 5 groups for MOnday, Tuesday, Wednesday, etc... each group is responsible for doing something..
I solved it by creating a nested loop...
FOR start date TO end date <-------------LOOP 1, for each day
For 1 to 5 <-------------LOOP 2, Get a group a random and then e-mail them
Call randomizer Function
Now e-mail Group Leader <---------Build array here(see question below)
However, sending out an e-mail every time the loop cycles is NOT the best method for doing this..I just needed to get a "workable" solution up and running to keep the boss happy. What I would like to do is to build a list/array of e-mail addresses and then send them all out at once...
Thoughts on how I can do this... build the array, and then when the loops are complete...use it in my e-mail function and then dump it?