1)
javax.mail.MessagingException: Could not connect to SMTP host: smtpout.secureserver.net, port: 465;
nested exception is:
javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
2) Check username and password are correct or not
javax.mail.AuthenticationFailedException: 535-5.7.8 Username and Password not accepted. Learn more at 535 5.7.8 https://support.google.com/mail/answer/14257 q4sm64058194pfi.94 - gsmtp
3) an error occurred while sending mail (534-5.7.14 redmin gmail
step 1) go to select Access for less secure apps as "turn of"
step 2) go to and Allow access to your Google account : click on continue
REF : Stackoverflow
No comments:
Post a Comment