Symptoms
SMTP error when trying to email out to an external address.
Diagnoses
Error Message:
The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.57 SMTP Client was not authenticated to send anonymous mail during MAIL FROM
•Type: System.Net.Mail.SmtpException
•Source: System
•Method Base
◦Member Type: Method
◦Name: CheckResponse
◦Module
Scope Name: System.dll
◦Declaring Type
Full Name: System.Net.Mail.MailCommand
•Stack Trace:
at System.Net.Mail.MailCommand.CheckResponse(SmtpStatusCode statusCode, String response)
at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, Boolean allowUnicode, SmtpFailedRecipientExceptionand exception)
at System.Net.Mail.SmtpClient.Send(MailMessage message)
at SourceCode.Forms.AppFramework.FormRuntime.SendMail(String messageXml)
at SourceCode.Forms.Runtime.AJAXCall.ProcessRequest(HttpContext context)
Resolution
To resolve this issue rerun the K2 set up manager and validate that the K2 service account has the correct permissions for exchange.
Run a repair on the box and then retest the form to see if the emails would send without an error appearing.