Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

outlook.office365 connect problem #201

Open
RickZeeland opened this issue Dec 6, 2017 · 1 comment
Open

outlook.office365 connect problem #201

RickZeeland opened this issue Dec 6, 2017 · 1 comment

Comments

@RickZeeland
Copy link

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 = "[email protected]";
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);
}
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@RickZeeland and others