Skip to content

outlook.office365 connect problem #201

Open
@RickZeeland

Description

@RickZeeland

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);
}
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions