Javamail not working -Help

Caused by: javax.mail.MessagingException: Could not connect to SMTP host:, port: 465 ( No appropriate protocol (protocol is disabled or cipher suites are inappropriate))

Check out Why using the default file is a good idea. Gmail requires some extra security on SMTP connections now that makes it tricky to send directly. Using the local postfix server let mail “just work”

Let me know the steps, how to do

Really thank you so much, you saved my time, looks working fine.