title: JavaMail connection timeout is not working as per properties
body: <p>Javax mail version used 1.6.2</p>
  <p>manually setting JavaMailSender</p>
  <p>Timeout thing I tried with mail.smtp.timeout &amp; mail.smtps.timeout.<br />
  And, I tried with both String &amp; Integer value 3000.</p>
  <pre><code>    String timeOut = &quot;3000&quot;;
      Properties pros = new Properties();
      pros.put(&quot;mail.smtp.timeout&quot;, timeOut);
      pros.put(&quot;mail.smtp.connectiontimeout&quot;, timeOut);
      pros.put(&quot;mail.smtp.writetimeout&quot;, timeOut);
  
      pros.put(&quot;mail.smtp.auth&quot;, &quot;true&quot;);
      pros.put(&quot;mail.smtp.starttls.enable&quot;, &quot;true&quot;);
  
  
      jmailSender.setJavaMailProperties(pros);
  
      return jmailSender;
  </code></pre>
  <p>It's taking around 7 seconds without any fail.
  Since by default is infinite, so most probably it is not setting somehow</p>
  <p>Are any properties missing or something else?</p>