2015-01-27 236 views
0

在使用lumisoft登錄Outlook後,有沒有辦法檢索登錄信息?這是我的代碼Lumisoft登錄驗證

private void Connect() 
     { 
      string m_pUserName = "[email protected]"; 
      string m_pPassword = "pass"; 
      string m_pServer = "imap-mail.outlook.com"; 


      IMAP_Client imap = new IMAP_Client(); 
      try 
      { 
       imap.Logger = new Logger(); 
       imap.Connect(m_pServer, 993, true); 

       imap.Login(m_pUserName, m_pPassword); 

       MessageBox.Show(imap.GreetingText); 

      } 
      catch (Exception x) 
      { 
       MessageBox.Show(this, "IMAP server returned: " + x.Message + " !", "Error:", MessageBoxButtons.OK, MessageBoxIcon.Error); 
       imap.Dispose(); 
      } 

     } 

如果憑據錯誤,它最終會拋出異常。 但是,如果他們是正確的,我想檢索greetingText以外的信息。例如用戶的電子郵件和密碼登錄等。

任何提示?

回答

0

我搜索的大部分信息並非全部都在IMAP_Client.AuthenticatedUserIdentity因此imap.AuthenticatedUserIdentity 會給我大部分我正在尋找的東西。 感謝和抱歉的麻煩。