Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / February 2008

Tip: Looking for answers? Try searching our database.

Exchange

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rick - 24 Feb 2008 18:20 GMT
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
Nicholas Paldino [.NET/C# MVP] - 24 Feb 2008 19:59 GMT
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.

Signature

         - Nicholas Paldino [.NET/C# MVP]
         - mvp@spam.guard.caspershouse.com

> What objects/namespace would one use to connect to an Exchange mailbox
> to read/delete messages.  I've found examples using System.Management
[quoted text clipped - 3 lines]
>
> Rick

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.