It’s sending email when gmail is as mail server. This is the error I got:
<code>javax.mail.messagingexception: could not convert socket to tls; nested exception is: javax.net.ssl.sslhandshakeexception: pkix path building failed: sun.security.provider.certpath.suncertpathbuilderexception: unable to find valid certification path to requested target.
</code>
<code>javax.mail.messagingexception: could not convert socket to tls; nested exception is: javax.net.ssl.sslhandshakeexception: pkix path building failed: sun.security.provider.certpath.suncertpathbuilderexception: unable to find valid certification path to requested target.
</code>
javax.mail.messagingexception: could not convert socket to tls; nested exception is: javax.net.ssl.sslhandshakeexception: pkix path building failed: sun.security.provider.certpath.suncertpathbuilderexception: unable to find valid certification path to requested target.