Open RickZeeland opened 6 years ago
Does anyone have any idea why I can't even logon to Outlook with the following code. Using Gmail the code works as expected.
`string host = @"outlook.office365.com"; string username = "tester@test.com"; string password = "xxxxxx"; int port = 993; bool isSSL = true;
using (var imap = new AE.Net.Mail.ImapClient(host, username, password, AE.Net.Mail.AuthMethods.Login, port, isSSL)) { Debug.Print("Connected to mail server."); var msgs = imap.SearchMessages(AE.Net.Mail.SearchCondition.Unseen(), true); unseenCount = msgs.Length; Debug.Print("Unread mail = " + unseenCount); } `
Does anyone have any idea why I can't even logon to Outlook with the following code. Using Gmail the code works as expected.
`string host = @"outlook.office365.com"; string username = "tester@test.com"; string password = "xxxxxx"; int port = 993; bool isSSL = true;
using (var imap = new AE.Net.Mail.ImapClient(host, username, password, AE.Net.Mail.AuthMethods.Login, port, isSSL)) { Debug.Print("Connected to mail server."); var msgs = imap.SearchMessages(AE.Net.Mail.SearchCondition.Unseen(), true); unseenCount = msgs.Length; Debug.Print("Unread mail = " + unseenCount); } `