javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465; nested exception is: java.net.SocketException: Unconnected sockets not implemented

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.

  • Send email to Gmail in glassfish
    via by taolu2000,
  • 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: Could not connect to SMTP host: smtp.gmail.com, port: 465; nested exception is: java.net.SocketException: Unconnected sockets not implemented at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1282) at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:370) at javax.mail.Service.connect(Service.java:288) at javax.mail.Service.connect(Service.java:169) at com.tekevolving.site.server.service.GoogleTest.send2(GoogleTest.java:53) at com.tekevolving.site.server.service.GoogleTest.main(GoogleTest.java:32) at com.tekevolving.site.server.service.AdminService.register(AdminService.java:107) at com.tekevolving.site.server.presentation.pages.RegistrationPage.register(RegistrationPage.java:138) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

    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,
    26 more bugmates