Thanks for the reply.I have done the similar configurations as given in the link , but still I am getting the below error. Caused by: javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465; nested exception is: java.net.ConnectException: Connection timed out: co...