Save the incoming Mails from Exchange Server to a database

Hello experts,
I'm very new to Exchange Server.
I need to download the incoming mails from Exchange Server to a database.
How can I accomplish it?
Can you give some good resources to get started? (preferred VB.Net)
Is it a difficult task?
Jorge SanchezSoftware EngineerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Depending on the exchange version you are using you can have a copy of all emails sent to a seperate mailbox which you can then query using and store as you need..
Luis PérezSoftware Architect in .NetCommented:
Well, if you use Exchange Server 2007, then you'll probably can use Exchange Web Services. It's a bit difficult at the beggining, but soon you'll find that that's probably the best way to interact with Exchange Server from .NET code (any language).

Exchange Web Services it's a Huge world, but afortunately it's well documentated. Here I give some useful URLs...
Creating an Exchange Web Services Client Application (from MSDN):
Exchange Server Developer Center (once inside, click on the link 'Programming Tasks', is extremely useful):
Microsoft Exchange Server Resource Site:
The Microsoft Exchange Team Blog:

Hope that helps.
Jorge SanchezSoftware EngineerAuthor Commented:
Thanks all for your answers.

DocCan11, can you give me more details on your approach? Do you have a link that I can use as a start-point for my application?
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

could you tell me what version of exchange you are using?
Jorge SanchezSoftware EngineerAuthor Commented:
I'm using Exchange Server 2007
ok.. there are two ways of doing this and it depends if you have webdav on.. if you do this is a walkthrough including coding examples

Give me a sec and I will find you info on an easier way using webservices as mentioned above..
this is a good article on how to use the exchange web services.. check out the 3 part intro series and I am sure you will be up and running in no time!


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.