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以外的信息。例如用戶的電子郵件和密碼登錄等。
任何提示?