469,301 Members | 2,153 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,301 developers. It's quick & easy.

SMTPClient.EnableSsl using TLS?

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
Jul 2 '07 #1
0 15683

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Nick Z. | last post: by
6 posts views Thread by =?Utf-8?B?VG9yc3Rlbg==?= | last post: by
7 posts views Thread by Afshar | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Geralt96 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.