Have a question around this project? sign up for a free allisonbrookephotography.com account to open up an issue and also contact the maintainers and also the community.

choose a username Email attend to Password authorize up because that allisonbrookephotography.com

By click “Sign up because that allisonbrookephotography.com”, you agree to our terms of service and also privacy statement. We’ll sometimes send girlfriend account related emails.

already on allisonbrookephotography.com? sign in to your account




You are watching: Javax.mail.messagingexception: could not convert socket to tls

*
Subbu0117 commented Oct 7, 2019

Expected Behavior

SMTP TLS and SSL have to send email making use of configured smtp details.

Current Behavior

Both TLS and SSL setting are failing for feather javax mail.

xx.comusername: no-reply
xx.compassword: I123456protocal: smtpproperties:auth: truestarttls.enable: truessl.trust: xx.com

Exception:javax.net.ssl.SSLException: i could not recognize it SSL message, plaintext connection?. Fail messages: javax.mail.MessagingException: might not convert socket come TLS;

Caused by: org.springframework.mail.MailSendException: mail server connection failed; nested exception is javax.mail.MessagingException: can not transform socket come TLS;nested exemption is:javax.net.ssl.SSLException: unrecognized SSL message, plaintext connection?. Failed messages: javax.mail.MessagingException: can not convert socket to TLS;nested exception is:javax.net.ssl.SSLException: i could not recognize it SSL message, plaintext connection?at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:447)at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:360)at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:355)at io.gravitee.management.service.impl.EmailServiceImpl.sendEmailNotification(EmailServiceImpl.java:104)... 14 typical frames omittedCaused by: javax.mail.MessagingException: could not transform socket come TLSat com.sun.mail.smtp.SMTPTransport.startTLS(SMTPTransport.java:1907)at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:666)at javax.mail.Service.connect(Service.java:295)at org.springframework.mail.javamail.JavaMailSenderImpl.connectTransport(JavaMailSenderImpl.java:517)at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:436)... 17 common frames omitted

**With SSL connection:

Configuration:**

xx.comusername: no-reply
xx.compassword: 123456ssl.trust:xx.comsocketFactory.port: 465properties:auth: truessl.enable: truesocketFactory.class: javax.net.ssl.SSLSocketFactory

Caused by: org.springframework.mail.MailSendException: letter server connection failed; nested exemption is javax.mail.MessagingException: might not attach to SMTP host: xx


See more: Britney Spears Wardrobe Malfuntion, Britney Spears Suffers On

xx.com, port: 465;nested exemption is:java.net.SocketException: connection reset. Fail messages: javax.mail.MessagingException: can not connect to SMTP host: xx