Click here to Skip to main content
15,860,859 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Microsoft is forcing everyone to use the MFA. My code is failing since the account I am using to send emails is MFA(ed).

Error message:
System.Net.Mail.SmtpException: 'The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.57 Client not authenticated to send mail. Error: 535 5.7.139 Authentication unsuccessful, account has an issue. Contact your administrator. [YQBPR0101CA0292.CANPRD01.PROD.OUTLOOK.COM]'


What I have tried:

Does anyone have the same issue?
Posted

1 solution

You have to enable the 2 factor authentication on your email account, then create an app password and use
this password in your program.

Check this link "Using app passwords with apps that don't support two-step verification"
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900