According to the SmtpClient.EnableSsl property documentation, this class provides precisely one way to use SSL - set the property and SSL over TLS is used. It specifically talks about another way being unsupported:
An alternate connection method is where an SSL session is established up front before any protocol commands are sent. This connection method is sometimes called SMTP/SSL, SMTP over SSL, or SMTPS and by default uses port 465. This alternate connection method using SSL is not currently supported.
SMTP, especially the security side of it, is not something I know much about. This question (C# ASP.NET Send Email via TLS) raises the point that not all SMTP servers support TLS but the fact is, I'm unsure about the relationship between port, SSL and TLS. I thought SSL and TLS were separate protocols, but "SSL over TLS" sounds more like how you have separate containers/codecs/transports in the world of video compression.
I assume that while I can change the port from 25 to 465, this will therefore not magically change anything - but is it likely a mail server will be configured to only listen for SSL requests on a specific port (i.e. not 25)?
Using SmtpClient
do I sensibly need to do anything than set EnableSsl
to toggle whether my application uses SSL or not?