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


Solutions on the web

Solution icon of oraclecommunity
via Oracle Community by taolu2000, 1 year ago
Could not connect to SMTP host: smtp.gmail.com, port: 465; nested exception is: java.net.SocketException: Unconnected sockets not implemented

Solution icon of oraclecommunity
via Oracle Community by 843830, 3 months ago
Could not connect to SMTP host: smtp.gmail.com, port: 465; nested exception is: java.net.SocketException: Invalid argument: connect

Solution icon of stackoverflow
Could not connect to SMTP host: smtp.gmail.com, port: 465; nested exception is: java.net.SocketException: Broken pipe

Solution icon of stackoverflow
via Stack Overflow by Mr MAmour
, 4 months ago
Could not connect to SMTP host: smtp.gmail.com, port: 465; nested exception is: java.net.SocketException: Connection reset

Solution icon of stackoverflow
Could not connect to SMTP host: smtp.gmail.com, port: 465; nested exception is: java.net.SocketException: Connection reset

Solution icon of oraclecommunity
via Oracle Community by 843834, 1 year ago
Could not connect to SMTP host: smtp.gmail.com, port: 465; nested exception is: java.net.SocketException: Can't connect to SOCKS proxy:Connection timedout: connect

Solution icon of googlegroups
Could not connect to SMTP host: smtp.gmail.com, port: 465; nested exception is: java.net.ConnectException: Connection refused: connect

Solution icon of stackoverflow
via Stack Overflow by Oneb
, 2 months ago
Could not connect to SMTP host: smtp.gmail.com, port: 465; nested exception is: java.net.ConnectException: Connection refused: connect

Solution icon of googlegroups
Could not connect to SMTP host: smtp.gmail.com, port: 465; nested exception is: java.net.ConnectException: Connection refused: connect

Solution icon of web
Could not connect to SMTP host: smtp.gmail.com, port: 465; nested exception is: java.net.ConnectException: Connection refused

Stack trace

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)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Once, 5 months ago
Samebug visitor profile picture
Unknown user
4 times, 11 months ago
769 times, 11 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
26 more bugmates