Add the following properties:
properties.put("mail.smtp.starttls.enable", "true");
properties.put("mail.smtp.port", "465");
If it doesnt work, try chaning the port:
properties.put("mail.smtp.starttls.enable", "true");
properties.put("mail.smtp.port", "587");