'Pentaho PDI :Mail Error No Appropriate Protocol (protocol is disabled or cipher suites are inappropriate)

While trying to send an email I faced this error

Mail - ERROR (version 7.0.0.0-25, build 1 from 2016-11-05 15.35.36 by buildguy) : Problem while sending message: javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465;
  nested exception is:
    javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate)

Step I took to send an email:

  1. Less secure app access: turned on
  2. Server name: smtp.gmail.com
  3. Port: 465 also tried 25 and 587
  4. SSL on
  5. full credential

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source