Gal Ratner
Gal Ratner is a Techie who lives and works in Los Angeles CA and Austin TX. Follow galratner on Twitter Google
Convert a comma delimited string to a list of email addresses

Just a little helper function.

List<System.Net.Mail.MailAddress> emails = new List<System.Net.Mail.MailAddress>();

smails = emails.Split(',').Select(a => new System.Net.Mail.MailAddress(a.Trim())).ToList();

enjoy


Posted 22 Jun 2009 7:14 AM by Gal Ratner
Filed under: ,

Powered by Community Server (Non-Commercial Edition), by Telligent Systems