0

用lumisoft登录outlook后有没有办法找回登录信息?这是我的代码

private void Connect()
        {
            string m_pUserName = "user@hotmail.com";
            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 以外的信息。例如登录用户的电子邮件和密码等。

有小费吗?

4

1 回答 1

0

我正在搜索的大部分信息(不是全部)都在里面,IMAP_Client.AuthenticatedUserIdentity所以imap.AuthenticatedUserIdentity 会给我大部分我正在寻找的东西。感谢和抱歉给您带来的麻烦。

于 2015-01-27T01:33:12.287 回答