Friday, 15 April 2016


javax.mail.MessagingException: Could not connect to SMTP host:, port: 465;
  nested exception is: 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 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