2011-01-14 70 views
0

當我嘗試以編程方式連接到IMAP outlook郵箱時(我能夠連接服務器但無法登錄)時,出現休眠錯誤。我100%確信我正在使用正確的用戶名和密碼。問題使用ChilKat連接到OutLook 2007(IMAP服務器)

loginResponse:AAAC NO登錄失敗 收到失敗

預先感謝您的IMAP服務器 失敗登錄響應...

+0

你好。 您是否已經找到答案? 從2003年到2010年的移民後,我有同樣的問題。 我使用端口993上的ssl。我可以連接到服務器,但無法登錄? 我可以連接到服務器,但無法登錄? – 2011-03-21 11:17:38

回答

0

在奇爾卡特組件的情況下,即使您的許可證密鑰無效你也會得到同樣的錯誤。 請看

Component.LastErrorText 

這將有detals。

嘗試

 Chilkat.Imap imap = new Chilkat.Imap(); 
     imap.UnlockComponent("LicenseText"); 

     // If your IMAP server needs SSL, set the Ssl property = true 
     // and set the IMAP port to 993. 
     // imap.Ssl = true; 
     // imap.Port = 993; 
     imap.Connect("IP Address"); 

     // Login to an email account. 
     bool b = imap.Login("username", "password"); 
+0

loginResponse:aaac NO登錄失敗從IMAP服務器收到失敗的登錄響應失敗........這就是它說的:( – 2011-01-14 16:08:22

0

Chilkat.Imap IMAP =新Chilkat.Imap();

  bool success; //string responseString; 

      // Anything unlocks the component and begins a fully-functional 30-day trial. 
      success = imap.UnlockComponent("Anything for 30-day trial"); 
      if (success != true) 
      { 
       MessageBox.Show(imap.LastErrorText); 
       return; 
      } 

      imap.Port = 993; 
      imap.Ssl = true; 
      // Connect to an IMAP server. 

      success = imap.Connect("servername.na.company.org"); 
      if (success != true) 
      { 
       MessageBox.Show(imap.LastErrorText); 
       return; 
      } 
      success = imap.IsConnected() ; 
      MessageBox.Show("suc"+success); 


      success = imap.Login("username", "pwd"); 


      if (success != true) 
      { 
       MessageBox.Show(imap.LastErrorText); 
       return; 
      } 

      // Select an IMAP mailbox 
      success = imap.SelectMailbox("[email protected]"); 
      if (success != true) 
      { 
       MessageBox.Show(imap.LastErrorText); 
       return; 
      }