What could be the solution for this error.
System.Net.Mail.SmtpException: 'The SMTP server requires a secure connection or The server response was: #5.7.0 Must issue a STARTTLS command first'
using (var smtpclient = new CvxSmtpClient("username", "password", 587))
message.Body = email.message;
smtpclient.EnableSsl = false;
smtpclient.Send(message);
var param = new SqlParameter();
param.ParameterName = "@id";
param.Value = email.id;
db.ExecuteSql(queryUpdateEmailsToSend, param);