Regarding Reading Excahnage server 2007 inbox mails

sukeshjh used Ask the Experts™
My client has got Exchange server 2007 and they have configured IMAP for this.

They have provided me one Email account where all the Leave request mails would come.I need to write a Sharepoint Timer job or windows service to incessantly check the inbox of the mail account.So i have got following concerns

1)Does Exchange server 2007 provide me any component where i can read inbox mails,mark the items as read or move them into another Folder.
2)Can i get any useful links and details how to get started.
3)I got many ways to go about but can i use MAPI to do all these tasks reading,moving mails to another folder.
4)My client has provided me the userid,password and SSL certificate for the exchange server
and the account

    Need what component i can use to read Exchange server 2007 Imap configured mails.Do i need to read emails from Outlook.Let me tell you my client is not using pop3 so that is out of scope.

Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Which Development tool you will use for this project? MS Visual Studio ?


Yes i intend to use c# and Visual Studio..
I would suggest you use the exchange webservices which work with 2007 s1 and 2010.

The URL will be:

Once you reference this in VS, you can read folder items like this:

                ExchangeService exchange = new ExchangeService(ExchangeVersion.Exchange2007_SP1);
                exchange.Credentials = new WebCredentials("username", "password");
                exchange.Url = new Uri("https://server/EWS/Exchange.asmx");

 Microsoft.Exchange.WebServices.Data.Folder folder = Folder.Bind(exchange, wellKnownFolderName.Inbox);
             FindItemsResults<Item> emails = folder.FindItems( new ItemView(200) );

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial