Hello
I downloaded the ExchangeConsoleDemo.zip and was looking through the code. I do not see a logout or disconnect method. Is this unneccesary for Exchange? In other words, Disconnect() is to POP3Client as ?? is to ExchangeClient.
Thanks
Mike
ExchangeConsoleDemo.zip snippet from Class1.cs:
//Initilize the ExchangeClient
string mailboxUri = "http://gz.aspose.com/exchange/mybox";
string username = "myusername";
string password = "12345678";
string domain = "aspose";
NetworkCredential credential = new NetworkCredential(username, password, domain);
//create an exchangeclient
ExchangeClient client = new ExchangeClient(mailboxUri, credential);
try
{
//Send the email via the exchage server
client.Send(msg1);
//query mailbox
ExchangeMailboxInfo mailbox = client.GetMailboxInfo();
//list messages in the Inbox
ExchangeMessageInfoCollection messages = client.ListMessages(mailbox.InboxUri, false);
foreach (ExchangeMessageInfo info in messages)
{
//save the message locally
client.SaveMessage(info.UniqueUri, info.Subject + ".eml");
}
}
catch(ExchangeException ex)
{
Console.WriteLine(ex.ToString());
}