Exemple #1
0
        private string GetFirstTo(MailAddressCollection to)
        {
            string first = "none";

            if (to.Count() > 0)
            {
                var email = to.First();
                if (email != null)
                {
                    first = email.Address;
                }
            }
            return(first);
        }