I am looking for code to put in our intranet portal which will indicate the number of unread (new) messages in a users exchange mailbox. The users of the intranet have logged in with valid AD credentials. Our intranet is written using ASP.NET and has some C#. Any code examples would be greatly appreciated. Thanks.
What version of Exchange are you using 2000/3 or 2007 in Exchange 2000/3 you can do this using WebDAV in 2007 you can do this using Exchange Web Services (or WebDAV). To get the number of unread email in a folder you just need to retrieve the PR_CONTENT_UREAD property of the folder in question http://msdn2.microsoft.com/en-us/library/ms530684(EXCHG.10).aspx . Depending on the version your using the methods may differ. What you might want to do is download the Exchange SDK http://msdn.microsoft.com/exchange and read up on the Exchange API's that are relative to the version of Exchange your using for WebDAV do a search on propfind for EWS have a look at the GetFolder operation. Cheers Glen "Bill Westrate" wrote in message news:A6CAEEB9-E8D7-4442-9EA0-32D1EB493C7D@microsoft.com... >I am looking for code to put in our intranet portal which will indicate the >number of unread (new) messages in a users exchange mailbox. The users of >the intranet have logged in with valid AD credentials. Our intranet is >written using ASP.NET and has some C#. Any code examples would be greatly >appreciated. > > Thanks.