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
|