hello people
I´m trying to get the name and address from a email account:
EmailAccountCollection col = session.EmailAccounts;
foreach (EmailAccount ea in col)
{
String add = (String)ea.Properties[AccountProperty.SenderEmailAddress];
String name = (String)ea.Properties[AccountProperty.SenderName];
}
I dont know if this way it´s right. The problem is that "add" and "name" always return null value;
Does someone knows other way to get the name and address from a email account? This way is it right?
thanks