title: Sending the email to the following server failed : smtp.mailtrap.io:465
body: <p>Hello i'm using 'maven' in eclipse.. i tried to send the mails using smtp.mailtrap.io but its showing these errors. Please find a solution for me</p>
  
  <pre><code>Email email = new SimpleEmail();
  email.setHostName("smtp.mailtrap.io");
  email.setSmtpPort(2525);
  email.setAuthenticator(new DefaultAuthenticator("chipurichetti.tarun@*****.com", "****"));
  email.setSSLOnConnect(true);
  email.setFrom("user@gmail.com");
  email.setSubject("TestMail");
  email.setMsg("This is a test mail ... :-) sent through gmail smtp after enabling (https://www.google.com/settings/security/lesssecureapps)");
  email.addTo("ashokreddy.arikatla@*****.com");
  email.send();
  System.out.print("mail sent");
  </code></pre>
  
  <p>This is the code i have used </p>