Read Exchange Emails
Exchange Server Forum Index Exchange Server
Discussion forums for Microsoft Exchange Server users.
Microsoft Outlook
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web ExchangeServerHelp.com
Read Exchange Emails

 
Post new topic   Reply to topic    Exchange Server Forum Index -> Development
Author Message
Terry Holland
Guest





Posted: Mon Oct 03, 2005 8:58 am    Post subject: Read Exchange Emails Reply with quote

Im not sure if this is the correct group for this question. If not please
advise of other group more suited.

I am trying to write a windows service that would read a number of Exchange
mailboxes at set intervals and respond to unread emails in the mailboxes.
Could someone point me in direction of sample code for this task

tia

Terry Holland

Back to top
Glen Scales [MVP]
Guest





Posted: Tue Oct 04, 2005 12:58 am    Post subject: Re: Read Exchange Emails Reply with quote

Depends on what version of Exchange you are talking about and what Language
you want to program in the best place to start would be to download the
Exchange SDK from http://msdn.microsoft.com/exchange . This will give you an
overview of the API's you can code in and examples of how to read emails in
a mailbox and also send mail. One method you could use instead of responding
at intervals is to write a Store Event sink that will fire when a new
message arrives.

Cheers
Glen

"Terry Holland" <terryeholland@newsgroup.nospam> wrote in message
news:ukJRLf$xFHA.2312@TK2MSFTNGP14.phx.gbl...
Quote:
Im not sure if this is the correct group for this question. If not please
advise of other group more suited.

I am trying to write a windows service that would read a number of
Exchange
mailboxes at set intervals and respond to unread emails in the mailboxes.
Could someone point me in direction of sample code for this task

tia

Terry Holland


Back to top
Dmitry Streblechenko
Guest





Posted: Tue Oct 04, 2005 8:58 am    Post subject: Re: Read Exchange Emails Reply with quote

If you are planning to use Extended MAPI (C++/Delphi only), set the service
to run under a Windows account that has admin rights on the Exchange
mailbox, create a dynamic profile in your service (see KB 170225 on MSDN),
log to the profile, open the store, then use IExchangeManageStore interface
to open other users' mailboxes and loop through their Inbox folders.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Terry Holland" <terryeholland@newsgroup.nospam> wrote in message
news:ukJRLf$xFHA.2312@TK2MSFTNGP14.phx.gbl...
Quote:
Im not sure if this is the correct group for this question. If not please
advise of other group more suited.

I am trying to write a windows service that would read a number of
Exchange
mailboxes at set intervals and respond to unread emails in the mailboxes.
Could someone point me in direction of sample code for this task

tia

Terry Holland




Back to top
 
Post new topic   Reply to topic    Exchange Server Forum Index -> Development All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server Dedicated Servers
New Topics Powered by phpBB