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. [ZR0P278CA0017.CHEP278.PROD.OUTLOOK.COM]

Sajith Gopalakrishnan Hema 1,056 Reputation points
2021-04-24T08:20:16.127+00:00

Getting error while sending email using .net and web.config has the following details-
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. [ZR0P278CA0017.CHEP278.PROD.OUTLOOK.COM]

<network host="smtp.office365.com" defaultCredentials="false" enableSsl="true" port="587" userName="" password=""/>

Developer technologies | ASP.NET | ASP.NET Core
{count} votes

1 answer

Sort by: Most helpful
  1. AddWebSolution 171 Reputation points
    2021-04-27T08:06:02.417+00:00

    Make sure that NetworkCredentials you set are correct and try to follow this links
    5-7-57-smtp-client-was-not-authenticated-to-send-anonymous-mail-during-mail-fr

    147c1a80-315c-4c13-95ff-d813b7715524


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.