I've got a MailAddressCollection that contains all the addresses I want to send an email to, but instead of being able to simply have:
myMessage.To = myMailAddressCollection;
I have to do:
foreach (MailAddress address in myMailAddressCollection)
{
myMessage.To.Add(address);
}
Can anyone shed any light on why the class is configured like that? Am I missing some other way of being able to assign to the To, CC or Bcc properties?