Exchange Server 2010: Using Test-MapiConnectivity cmdlet

With Exchange Server 2010, recently i used the Test-MapiConnectivity cmdlet. Because it verifies server functionality by logging on to the mailbox that you specify. This cmdlet logs on to the mailbox that you specify (or to the SystemMailbox if you don’t specify the Identity parameter) and retrieves a list of items in the Inbox. Logging…


WebDAV : How to retrieve list of folders from Exchange Server using Search method (WebDAV) programmatically ?

using System; using System.Net; using System.IO; using System.Text; using System.Xml;   namespace SampleCode { class GetFolders { static void Main(string[] args) { // Variables. System.Net.HttpWebRequest Request; System.Net.WebResponse Response; System.Net.CredentialCache MyCredentialCache; string strRootURI = "http://server/exchange/username/Inbox/"; // Provide the valid URI string strUserName = "UserName"; string strPassword = "Password"; string strDomain = "Domain"; string strQuery =""; byte[]…


Troubleshooting : EWS request throws “The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel” ?

One of my customer updated that whenever they try to make the remote Exchange Web Service (EWS) call from his C#.Net 2008 application (VS.Net 2008 – .Net Framework 3.x), he gets the following error: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel I had a detailed look at…

3

Part # 2 – Using C#.Net & Exchange Web Service (EWS) : How to create and send e-mail messages?

In this we will see how to create & send e-mail messages using Exchange Web Service (EWS). It’s pretty simple with EWS to do. // Create the Exchange Service Binding ExchangeServiceBinding esb = new ExchangeServiceBinding();  // Add its relevant Credentials like user name, password, domain and URL esb.Credentials = new NetworkCredential(userName, Password, domain); esb.Url =…

6