Exchange Server 2003 Database access with C#

  • Thread starter Thread starter dmalhotr2001
  • Start date Start date
D

dmalhotr2001

Hi,

I have exchange server 2003 (at least that's what the admins tell me).
I need to access the email addresses from the exchange server to a c#
desktop application. However, I'm not sure how to do that? Is there a
good resource. All I know (at least what the exchange admin told me)
is that it uses a database in EDB format.
Thanks and any help is MUCH appreciated.

:DHRUV
 
From What I have found there is no managed way to access the Global Address
list from the database (If any one knows how please post)...

But you might be able to use offie automation to access the data. To do this
you will need to have outlook installed, and then tap into it from there.
For security reasons you may be able to create an active directory user and
attach a mail box to it. Then set the settings so that the mail account can
not send and recieve email, also set it so that it is invisable in the
global address list (Your Exchange Admins can do this)... Once this is done
you would log into that account through the outlook system and office
automation and collect the data required..
 
These addresses are not kept in the exchange database but in Active
Directory.
So what you really need is access to the AD database. You can use CDO for
that purpose.
Don't know about C#, but for a start you could look at www.cdolive.com for
at least some script-samples.
Regards
Rudy Steyaert
 
Hello,

you must differentiate between contacts stored in Active Directory and
contacts stored in a public folder.

The first type can be accessed with the classes under the
System.DirectoryServices namespace.

The latter one can be accessed via WebDAV
(http://msdn.microsoft.com/library/en-us/e2k3/e2k3/wss_references_webdav.asp
).

Greetings,
Henning Krause [MVP]
==========================
Visit my website: http://www.infinitec.de
Try my free Exchange Explorer: Mistaya
(http://www.infinitec.de/software/mistaya.aspx)
 
Back
Top