Hello,
I am trying to get the contactform.acsx exercise going. I get the following error.
The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Must issue a STARTTLS command first. g14sm12076631rvb.52
The research I have done advises that the enablessl = true; command must be issued after declaring the mysmtpclient.
myMessage.To.Add(new MailAddress("
[email protected]", "Receiver Name HEre"));
SmtpClient mySmtpClient = new SmtpClient();
mySmtpClient.EnableSsl = true;
try
{
mySmtpClient.Send(myMessage);
The thing is that i have done this in the contactform.ascx.cs file
and there is no change.
Help
Thanks
tomche