Exchange

  • Thread starter Thread starter Rick
  • Start date Start date
R

Rick

What objects/namespace would one use to connect to an Exchange mailbox
to read/delete messages. I've found examples using System.Management
to read mailbox sizes, but not nothing to read messages. I've also
found examples using WebDAV, but I'm not sure if this is the only way,
and if it's the preferred method.

Rick
 
Rick,

WebDAV is probably the easiest way. You could use CDO, but it would
require the COM components to be installed.

Here is an article that shows how to do it in VB6:

http://www.codeproject.com/KB/vb/AccRemoteExchange.aspx

It's pretty easy to translate that to a .NET environment, using the
classes in the System.Net namespace to issue the request to the server, and
the classes in the System.Xml namespace to generate the message to parse the
response.

As a matter of fact, that is exactly how the following KB article (sans
XML) does it:

http://support.microsoft.com/kb/313122

You could actually use WCF to handle the communication with the server,
but it would require a little work, but WCF does support REST-style
services, like WebDAV.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top