im using this code to get the contacts from outlook:
foreach (var v in svc.FindItems(WellKnownFolderName.Contacts,
new ItemView(20)))
{
Contact contact = v as Contact;
ContactGroup contactGroup = v as ContactGroup;
if (contact != null)
{
Console.WriteLine("Contact: {0} <{1}>",
contact.DisplayName,
contact.EmailAddresses[EmailAddressKey.EmailAddress1]);
}
}
i'm need to get de email direction ([email protected]) but i get this in email address field:
"/o=companyname/ou=FIRST ADMINISTRATIVE GROUP/cn=RECIPIENTS/cn=username"