Checking Exchange server for new mail

  • Thread starter Thread starter Razzie
  • Start date Start date
R

Razzie

Hey experts,

First let me say I know almost nothing about Exchange, so if I say incorrect
things about it, forgive me ;)

What I need to do is, connect to the local Exchange server and monitor all
incoming email. So preferably an event is raised when an email enters the
queue.
Is this possible? I've downloaded the Exchange 2000 SDK, but to be honest, I
couldn't find any good samples there. Is there a tutorial somewhere on how
to do this? Can someone give me a basic code sample of connecting and
listing the mails on the server?

Thanks in advance,

Razzie
 
This would be a good question to ask in the
microsoft.public.exchange2000.development newsgroup.

Cheers,
John Wadie
 
This is harder than it sounds, and harder than it should be.

If you are on a client where Outlook is installed, you can use the Outlook
SDK to hook in to the Outlook API. Then, this isn't too bad.

If you are on a server, or on a client where Outlook is not installed, you
can use EMAPI or you can use WebDAV.

WebDAV uses less resources, but it's hard as heck to get any documentation
on it. I have code that does this using WebDAV (not fully debugged yet,
unfortunately).

Can you get the e-mail to come to a POP3 server instead of Exchange? If
so, there are readily available commercial components that will work. There
may be a commercial component available for the Exchange reading ability as
well... not sure.

Good luck,
---- Nick
 
Hmmm my preference is to write it for a server, although hooking in to the
Outlook API is not impossible. I will look into this.
I will also google for EMAPI, since I didn't know of it.

I just thought it was easy to connect to an Exchange server and read an
email. Guess I was wrong :)

Thanks for your help!
Razzie
 
Back
Top