i am sending out email to a list of people. I have the list of recipients in array but the list can get up to 500 people. There is a limitation on the number of recipients
Maybe ArraySegment
int recipient = 0;
while (recipient < recipients.Count) {
ArraySegment recipientSegment = new ArraySegment(recipients, recipient, Math.Min(50, recipients.Count-recipient));
// build your message here, using the recipientSegment for the names
recipient += 50;
}