title: javax.mail.NoSuchProviderException: No provider for smtps
body: <p>I'm trying to set up my Java project to be able to send e-mail (via g-mail, if it matters) and am getting "javax.mail.NoSuchProviderException: No provider for smtps" every time I try to run the following line (which is copy/paste from their example).</p>
  
  <pre><code>Transport transport = session.getTransport("smtps");
  </code></pre>
  
  <p>I've looked around and found that this is generally thrown because you don't have the mail.jar included in your classpath, but I do in fact have the mail.jar included.  Since I am running JDK 1.6 I do not need to include the activation.jar according to the FAQ here (<a href="http://www.oracle.com/technetwork/java/javamail/faq-135477.html#classpath" rel="noreferrer">http://www.oracle.com/technetwork/java/javamail/faq-135477.html#classpath</a>).  Further, the activation.jar does not seem to be present in version 1.4.7 of javamail.</p>
  
  <p>Just in case something got corrupted, I re-downloaded the entire zip from oracle's website, extracted it and added the jar fresh (after deleting the old jar) and I am still getting the same error.  Any thoughts as to what the issue could be at this point?</p>
  
  <p>EDIT: Here is the full stack trace that is being printed:</p>
  
  <pre><code>javax.mail.NoSuchProviderException: No provider for smtps
      at javax.mail.Session.getProvider(Session.java:433)
      at javax.mail.Session.getTransport(Session.java:627)
      at javax.mail.Session.getTransport(Session.java:608)
  ... my code that calls getTransport() ...
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
  ... more of my code ...
      at java.lang.Thread.run(Thread.java:662)
  </code></pre>