2013-09-24 56 views
1

我沒有使用ImapX取回我的電子郵件帳戶的文件夾:無法檢索特定的郵件服務器上的電子郵件文件夾..可能的原因

ImapX.ImapClient m_ImapClient = new ImapX.ImapClient(ImapServerAddress, (int) ImapServerPort, System.Security.Authentication.SslProtocols.Ssl3, false); 
m_ImapClient.Connect(); 
m_ImapClient.Login(EmailAddress, EmailPassword); 
//the two functions above each return true 
//this last statement throws an exception: 
ImapX.Collections.FolderCollection vFolders = m_ImapClient.Folders; 

,那就是:

'm_ImapClient.Folders' threw an exception of type 'System.NullReferenceException' ImapX.Collections.CommonFolderCollection {System.NullReferenceException} 

什麼問題,我正在使用IMAP,ssl,端口993. ImapX 2.這適用於993上的imap.google.com,但不適用於其他網絡服務器。有關爲什麼會發生這種情況的任何想法?

回答

相關問題