title: How to verify the TLS version used in javax.mail.*;
body: <p>When connecting to an SMTP server using <code>javax.mail</code> , how can I make sure that the version of TLS is v1.2 or higher.</p>
  
  <p>I am using Java version 8 (update 162).</p>