Addressbook from Outlook 2003
C#
1
Posts
1
Posters
0
Views
1
Watching
-
I want to get the email form my Outlook addressbook. Now, I can only get the name. I have no idea, how I can get email.
Outlook.AddressList addressList;
for (int i = 3; i <= addressLists.Count; i++ )
{
addressList = addressLists[i];
Console.WriteLine("Name: {0}", addressList.Name);Outlook.AddressEntries addressEntries = addressList.AddressEntries; foreach (Outlook.AddressEntry addressEntry in addressList.AddressEntries) { Console.WriteLine("{0}", addressEntry.Name); Console.WriteLine("{0}", addressEntry.Address); addressEntry } }