to add email addresses to a Message object. I’m wondering if there is a way to add a string which contains multiple comma or semi-colon delimited addresses to a message, or must I parse them out and add them separately?
If you want to add multiple email address from a single string then you can also achieve that as demonstrated below.
C#
var message = new Aspose.Email.Mail.MailMessage();
message.To.Add(“abc@domain.com,xyz@domain.com”);
message.Save(“output.msg”, MailMessageSaveType.OutlookMessageFormat);
Note: Output of above sample code is attached in an archive.