2011-01-14 66 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; 
      }