split arraylists into multiple arraylists?
Posted on 2006-03-23
I have a custom email campaign system that is limited to sending 200 emails per send. I have an arraylist full or subscriber emails. If I have a list of 407, how can I break that up into 3 or 4 seperate arrayLists? Is this even the best way of going about this task?
Right now I have:
For i = 0 To (alSubscribers.Count()-1)
'//get the message
'//setup the email
'//send the message to the first subscriber
And this works just fine, up to the 200th subscriber since my ISP restricts relays to 200 per send.
Thanks very much for your help! If it makes a difference, I am running this on a background thread.