I\'m trying to write a basic console app that will send an email. The problem is that I keep getting the Socket exception:
An attempt was made to acc
Try to play with EnableSsl. In msdn reason of exception:
EnableSsl is set to true, but the SMTP mail server did not advertise STARTTLS in the response to the EHLO command.
Also check StatusCode of the exception.