I've written a simple integration test to access an email account and retreive the messages in the inbox.
public void ShouldAccessInbox()
{
var _imapClient = new ImapClient( exchangeServer, emailAccount, password );
_imapClient.Connect();
_imapClient.Login();
_imapClient.SelectFolder( ImapFolderInfo.InBox );
var messages = _imapClient.ListMessages();
}
However the _imapClient.ListMessages(); call, hangs, and never completes. I haven't been able to find any posts on the forum about what could be causing this. Any ideas on why the ListMessages() call could just hang?
Thanks,
Denise