private string GetFirstTo(MailAddressCollection to) { string first = "none"; if (to.Count() > 0) { var email = to.First(); if (email != null) { first = email.Address; } } return(first); }
private string GetFirstTo(MailAddressCollection to) { string first = "none"; if (to.Count() > 0) { var email = to.First(); if (email != null) { first = email.Address; } } return(first); }