How to resolve this issue. I am getting error while sending emails

Shiva Maurya 10 Reputation points
2024-09-23T12:59:17.6266667+00:00

Error: 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, basic authentication is disabled. [PN3PR01CA0011.INDPRD01.PROD.OUTLOOK.COM 2024-09-23T08:56:54.313Z 08DCDB83814A4335]

Getting the above error from today onwards while sending mails using this server "smtp.office365.com"

Here is the detailed error getting in C# 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. [PN2PR01CA0089.INDPRD01.PROD.OUTLOOK.COM 2024-09-23T11:45:32.835Z 08DCDB31B8645AFE]'

Developer technologies | C#
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Wuttipat Jamkamon 5 Reputation points
    2024-09-29T03:51:14.7966667+00:00

    I have same issue. I'm using email personal account I cannot access admin portal.

    1 person found this answer helpful.

  2. Hui Liu-MSFT 48,676 Reputation points Microsoft External Staff
    2024-09-23T14:21:43.3266667+00:00

    Hi,@Shiva Maurya. Welcome to Microsot Q&A.

    There may be other two possible causes of this issue. Please refer to this link and check point 3 (Azure Security Defaults) and point 4 (Conditional Access policy): Error: Authentication unsuccessful 123478-08.jpg

    These settings would block Legacy Authentication.


    If the response is helpful, please click "Accept Answer" and upvote it. Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.