title: Could not convert socket to TLS on Apache Commons Mail
body: <p>I have a problem connecting to a SMTP Server with Apache Commons Mail. I have tried everything but the only thing I can find online is for Java Mail.
  This is my error: </p>
  
  <blockquote>
    <p>Caused by: javax.mail.MessagingException: Could not convert socket to TLS;
      nested exception is:
        javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target</p>
  </blockquote>
  
  <p>I have seen that you can fix the issue on Java Mail with <code>props.put("mail.smtp.ssl.trust", "smtp.gmail.com");</code> for example, but I can't a equivalent command to use on Apache Commons. </p>