Mombu the Microsoft Forum sponsored links

Go Back   Mombu the Microsoft Forum > Microsoft > EXCHANGE SERVER (TECHNET) > Retrieve unread emails in VB.NET
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 2nd August 13:00
roger mcfadden -
External User
 
Posts: 1
Default Retrieve unread emails in VB.NET



Hello

Is there a sample available how I can retrieve all unread emails from an
exchange server account?
VB.NET prefered, C# possible :-)

Thanks

Sven
  Reply With Quote


  sponsored links


2 2nd August 13:02
henning krause mvp - exchange
External User
 
Posts: 1
Default Retrieve unread emails in VB.NET



Hello Roger,

you can use WebDAV to get that. If you are running on the Exchange server,
you can also use CdoEx.

When using WebDAV, you can use my InfiniTec.Exchange package (It's free :-)

For an ADO example, see
http://msdn.microsoft.com/library/en-us/e2k3/e2k3/_clb_listing_unread_messages_in_a_folder_using_ado_vbs.asp.

When using my WebDAV package, it would be something like this (C#):

Connection conn = new Connection("server", ConnectionProtocol.Http, new
Credential(username, password, AuthenticationType.Ntlm));
Searcher searcher = new Searcher("searchroot");
searcher.Constraints = "\"DAV:unread\" = true";

searcher.Find();

See http://www.infinitec.de/software/nettoolbox/infinitec.exchange.aspx for
more.

Greetings,
Henning Krause
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666