0 votes

Getting below error when try to login using pop.connect method

invingestion@iqss.onmicrosoft.com

Error: logon failure: unknown user name or bad password.
I can able to login directly to outlook.office365.com portal.
I am using mail.dll demo versions for implementation.

by

1 Answer

0 votes

There are several ways to log in:

1.
User/Primary password (MFA must be turned off for the account).

Remember to turn IMAP, POP3 on:
https://www.limilabs.com/blog/office365-enable-imap-pop3-smtp

2.
User/Application password when MFA is turned on.

https://www.limilabs.com/blog/office365-app-passwords

Remember to turn IMAP, POP3 on, as in 1.

3.
One of several OAuth flows.

User initiated:
https://www.limilabs.com/blog/oauth2-office365-exchange-imap-pop3-smtp

OAuth 2.0 password grant:
https://www.limilabs.com/blog/oauth2-password-grant-office365-exchange-imap-pop3-smtp

Remember to turn IMAP, POP3 on, as in 1.

by (301k points)
I’ve tried all of the steps and still facing the same issue
You need to be more specific. Which scenario you try to accomplish? I suggest using App passwords.

You can contact us directly - you can find support email in the footer.
I did 1 and 2 both ways and getting same issue for imap and pop3
We'd need more details to help you: screen-shots, your code, do you have MFA turned on?), otherwise I suggest contacting your server administrator for help.

I've just check and have no problems connecting and authenticating - both using app passwords and primary password.

Please contact us directly - you can find our support email in the page footer.
...