Link to home
Start Free TrialLog in
Avatar of SkipFire
SkipFire

asked on

Get user's email addresses with .NET

I am trying to use C# to get a list of all the email addresses a user has in Exchange.  I am able to traverse Active Directory and I can see the mail property, but that only shows the user's email address as registered in AD, not in the Exchange tabs where you can have extra addresses.  How can I access the list of emails assigned to a given use account?  I would prefer to do it through Active Directory methods in C# or VB.NET.
ASKER CERTIFIED SOLUTION
Avatar of redseatechnologies
redseatechnologies
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of SkipFire
SkipFire

ASKER

That does not return all the addresses, when I tried it I only got one address back but the account I am checking has 6 different SMTP addresses.
That isn't what it does here for me :/
I missed one line of code when translating to C#.  Thanks.
You are most welcome.

-red