Aspose.Email.Examples.CSharp.Email.Exchange.AccessAnotherMailboxUsingExchangeClient.Run C# (CSharp) Method

Run() public static method

public static Run ( ) : void
return void
        public static void Run()
        {
            // ExStart:AccessAnotherMailboxUsingExchangeClient
            // Create instance of ExchangeClient class by giving credentials
            ExchangeClient client = new ExchangeClient("http://MachineName/exchange/Username","Username", "password", "domain");

            // Get Exchange mailbox info of other email account
            ExchangeMailboxInfo mailboxInfo = client.GetMailboxInfo("[email protected]");
            // ExEnd:AccessAnotherMailboxUsingExchangeClient
        }
    }
AccessAnotherMailboxUsingExchangeClient