Quantcast
Channel: Aspose.Email Product Family
Viewing all articles
Browse latest Browse all 1367

Something is not right with the IMAP Library based off your online example (30 day eval download version)

$
0
0

I'm trying to follow the example you have posted online for Imap Exchange connection.  

However there is no .Connect() call in the library I just downloaded.   Not sure how to make the connection?

Code was pulled from this url: 
http://www.aspose.com/docs/display/emailnet/Connecting+to+Exchange+Server+using+IMAP

Code:


// Connect to Exchange Server using ImapClient class
ImapClient imapClient = new ImapClient(textBoxExchangeServer.Text , textBoxExchangeUser.Text, textBoxExchangePassword.Text);


imapClient.Connect(true);  //this doesn't exist  in the new download ????

// Select the Inbox folder
imapClient.SelectFolder(ImapFolderInfo.InBox);

// Get the list of messages
ImapMessageInfoCollection msgCollection = imapClient.ListMessages();
foreach (ImapMessageInfo msgInfo in msgCollection)
{
       Console.WriteLine(msgInfo.Subject);
}
// Disconnect from the server
imapClient.Disconnect();


Viewing all articles
Browse latest Browse all 1367