Problem sending zoho mail via Java Mail

Problem sending zoho mail via Java Mail

I have read your post https://help.zoho.com/portal/en/community/topic/using-javamail-to-send-email-in-java and have exactly the same configuration. 

  1.  Properties props = new Properties();
  2.         props.put("mail.smtp.host", "smtp.zoho.com");

  3.         props.put("mail.smtp.auth", "true");
  4.         props.put("mail.smtp.port", "465");
  5.       

  6.         props.setProperty("mail.pop3.socketFactory.class", "javax.net.ssl.SSLSocketFactory");
  7.         props.setProperty("mail.smtp.socketFactory.class", "javax.net.ssl.SSLSocketFactory");
  8.         props.setProperty("mail.smtp.socketFactory.fallback", "false");
  9.         props.setProperty("mail.smtp.socketFactory.port", "465");
  10.         props.put("mail.smtp.startssl.enable", "true");

  11. ....
  12. Transport trans = session.getTransport("smtp");
  13.         trans.connect("smtp.zoho.com", 25, "info@mydomain.com", "mypass");
However I get back the following

javax.mail.MessagingException: Could not connect to SMTP host: smtp.zoho.com, port: 25;
  nested exception is:
java.net.SocketException: java.lang.ClassNotFoundException: DummySSLSocketFactory
I tried numerous configurations and the best I could get was a time out connecting to the server. The account and settings are ok whn used through outlook.

thank you in advance