server committed a protocol violation

David A. Martin 1 Reputation point
2021-12-16T21:15:36.823+00:00

We are getting this error message intermittently when sending email via System.Net.Mail through Office 365 SMTP

ERROR System.Net.Mail.SmtpException: The server committed a protocol violation The server response was:
at System.Net.Mail.SendMailAsyncResult.End(IAsyncResult result)
at System.Net.Mail.SmtpClient.SendMailCallback(IAsyncResult result)

No changes from our current configuration etc. Configured Tracing on System.Net and System.Net.Sockets and there are no exceptions being logged.

Community Center Not monitored
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2021-12-16T21:20:30.197+00:00

    O365 is not currently supported here on Q&A. The product group for Office 365 actively monitors questions over at
    https://techcommunity.microsoft.com/t5/office-365/ct-p/Office365

    --please don't forget to upvote and Accept as answer if the reply is helpful--

    0 comments No comments

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.