SMTPClient.EnableSsl using TLS?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

It seems like SmtpClient.EnableSsl = true, results in that the SmtpClient
instance tries to use TLS over SMTP... That is: it commands "STARTTLS" when
the connection has been established. My question is: Does SmtpClient also
support SMTPS (that is: SMTP using SSL) ?

SmtpClient client = new SmtpClient("server", 465);
client.UseDefaultCredentials = false;
client.EnableSsl = true; // TLS ?
client.Credentials = new NetworkCredential("whopper", "cheese");
client.Send(message);

Regards,
Fredrik
 
Back
Top