First of all sorry my code is to set the mailobject's CC collection i.e m_mailObject.CC.Add(New MailAddress("test1@mailserver.com,test2@mailserver.com")) within quotes (I missed to put the quotes
in the previous sample code). So I am using the MailAddress constructor with one parameter of Address. Why would this create only one count of email address.
I understand, if I have to make it run, I will have to loop and for each item do a CC.Add(...). But isnt the MailAddress supposed to do that?
suvarnav
Member
7 Points
4 Posts
Re: MailAddress doesnt support multiple comma seperated email address
Feb 23, 2012 05:32 PM|LINK
Thanks for the reply Ken.
First of all sorry my code is to set the mailobject's CC collection i.e m_mailObject.CC.Add(New MailAddress("test1@mailserver.com,test2@mailserver.com")) within quotes (I missed to put the quotes in the previous sample code). So I am using the MailAddress constructor with one parameter of Address. Why would this create only one count of email address.
I understand, if I have to make it run, I will have to loop and for each item do a CC.Add(...). But isnt the MailAddress supposed to do that?