private static string FormatMultipleEmailAddresses(string emailAddresses) { var delimiters = new[] { ',', ';' }; var addresses = emailAddresses.Split(delimiters, StringSplitOptions.RemoveEmptyEntries); return string.Join(",", addresses); }