When sending email, the following error appears. What could be the reason?
The client does not have permission to send mail to this server. The server response was: 5.5.1 STARTTLS cannot be repeated.
Here's the stack trace ...
Stack trace
in System.Net.Mail.StartTlsCommand.CheckResponse (SmtpStatusCode statusCode, string response) in System.Net.Mail.StartTlsCommand.Send (SmtpConnection conn) on System.Net.Mail.SmtpConnection.GetConnection (host String, port Int32) in System .Net.Mail.SmtpTransport.GetConnection (host String, Int32 port) in System.Net.Mail.SmtpClient.GetConnection () in System.Net.Mail.SmtpClient.Send (MailMessage message)
I connect to smtp.gmail.com using SSL on port 587/465
source share