javax.mail.MessagingException: Can't send command to SMTP host; 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

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Unable to send mail (jre 7 + tomcat + TLS)
    via Stack Overflow by Rajesh Kumar
    ,
  • Javamail exception in maven project
    via Stack Overflow by user3026263
    ,
  • Can't send attachment using Java Mail
    via Stack Overflow by XXX
    ,
    • javax.mail.MessagingException: Can't send command to SMTP host; 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 at com.sun.mail.smtp.SMTPTransport.sendCommand(SMTPTransport.java:1420) at com.sun.mail.smtp.SMTPTransport.sendCommand(SMTPTransport.java:1408) at com.sun.mail.smtp.SMTPTransport.ehlo(SMTPTransport.java:847) at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:384) at javax.mail.Service.connect(Service.java:297) at javax.mail.Service.connect(Service.java:156) at javax.mail.Service.connect(Service.java:105) at com.server.util.MailServerHandler.checkMailServer(MailServerHandler.java:145)

    Users with the same issue

    Axelo
    Axelo1 times, last one,
    Unknown visitor4 times, last one,
    Tahir
    Tahir767 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    27 more bugmates