im creating an application that have to read and update Contacts Information (like phone number, email, etc..) from Microsoft Exchange...
Does any one know how can i connect to a MS Exchange DB ??
im creating an application that have to read and update Contacts Information (like phone number, email, etc..) from Microsoft Exchange...
Does any one know how can i connect to a MS Exchange DB ??
WebDAV is what i use...
Here's a function i wrote to access our exchange server (be kind i wrote it years ago).. (:
and here's how i invoke it
hopefully this points you in the right direction
You will have to use Extended MAPI, it is not a standard SQL database.
You can:
Use ExtendedMAPI. Look for MAPI33 on the 'net. It has examples of what you want to do I think.
Use the web services. Thats the preferred way in 2007
WebDAV also works, but I dont think it works in 2007 at all?
MAPI is the best way, but it's not officially supported in .NET (tho it works), and it does NOT AT ALL work in 64bit mode. It's 32 bit only.
If you are using Exchange 2007 you can use Exchange Web Services
You could use the ExchangeManagmentShell and issue powershell commands like set-mailbox to change the e-mail address.
But if you only want to update the phonenumber, roomnumber, etc . This is all stored in the ActiveDirectory.