Gartheus
Gartheus

Reputation: 31

Can't log in to Outlook POP server using ASP.NET TcpClient - invalid credentials

After midnight I started getting error when trying to connect to Outlook POP server from ASP.NET application using TcpClient with SSL. I'm receiving an OK response from the POP server and then it responds with "-ERR Logon failure: unknown user name or bad password.". However the credentials are corrent and I'm able to log in to the account using the same user name and password through the browser.

I can see there were some changes implemented today to block older versions of outlook, which probably affected me in some way as well. Have anyone had a similar issue with this and has a possible solution?

POP settings I'm using: Server name: outlook.office365.com Port: 995

Upvotes: 1

Views: 792

Answers (1)

jstedfast
jstedfast

Reputation: 38528

Office365 has just started requiring OAuth2.0 authentication for SMTP, POP3, and IMAP.

You cannot use a username and password anymore.

Upvotes: 2

Related Questions