org.apache.commons.mail.EmailException: Sending the email to the following serve r failed : smtp.gmail.com:587

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by Dan
, 10 months ago
Sending the email to the following serve r failed : smtp.gmail.com:587
via Stack Overflow by Dan
, 10 months ago
Sending the email to the following serve r failed : smtp.gmail.com:587
via GitHub by slimandslam
, 2 years ago
Sending the email to the following server failed : smtp.gmail.com:587
via Stack Overflow by Josh Kraushaar
, 2 months ago
Sending the email to the following server failed : stmp.gmail.com:587
via GitHub by jmrichardson
, 2 years ago
Sending the email to the following server failed : smtp.gmail.com:465
via GitHub by jmrichardson
, 2 years ago
Sending the email to the following server failed : smtp.gmail.com:465
org.apache.commons.mail.EmailException: Sending the email to the following serve r failed : smtp.gmail.com:587
at sun.security.ssl.InputRecord.handleUnknownRecord(InputRecord.java:710)
at sun.security.ssl.InputRecord.read(InputRecord.java:527)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:973)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403)
at com.sun.mail.util.SocketFetcher.configureSSLSocket(SocketFetcher.java:548)
at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:352)
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:207)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1938)

Users with the same issue

Once, 3 months ago
5 times, 6 months ago
Samebug visitor profile picture
Unknown user
Once, 10 months ago
4 times, 1 year ago
Samebug visitor profile picture
Unknown user
2 times, 1 year ago
88 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.