0
我正在製作一個軟件來檢查一些hotmail帳戶的東西。我正在使用OpenPop.NET庫。奇怪的是,我得到無效的密碼異常與一些帳戶,而我確信密碼是正確的,因爲我可以正常登錄而不pop3。我很感激,如果有人可以給我一個答案或其他方式連接到除pop3以外的Hotmail收件箱(不建議使用Web瀏覽器)。爲什麼我在嘗試通過POP3連接時收到一些Hotmail帳戶的無效密碼?
這裏是我使用的連接代碼:
Pop3Client client = new Pop3Client();
client.Connect("pop3.live.com", 995, true);
var username = file[i].Split(':')[0];
var pass = file[i].Split(':')[1];
try
{
client.Authenticate(username, pass); //I am pretty sure that username,pass holds the right values.
var msgs = client.GetMessageCount().ToString();
updateList(i, msgs); //updates a listbox with message count for the hotmail account
}
catch (OpenPop.Pop3.Exceptions.InvalidPasswordException)
{
updateList(i, "Invalid Password");
}
感謝。
編輯:這是服務器響應非工作,我得到的佔
The server didn't respond with +OK response. The response was: "-ERR mailbox could not be opened"
這是不正確的。我認爲這可能是問題,但根據我的測試,非工作賬戶遲早不會工作。有點奇怪。 – deadlock 2011-02-05 01:22:44