title: Spring JavaMailSenderImpl javax.mail.NoSuchProviderException: smtp
body: <p>I have a very large project with a ton of dependancies, and am getting the following exception when trying to send mail:</p>
  
  <pre><code>javax.mail.NoSuchProviderException: smtp
  </code></pre>
  
  <p>I know the code works because it is part of a library that is used in other projects.  Does anyone know what would cause this exception to happen? I have looked through all of the jar's and the only one containing 'javax.mail' is 'mail-1.4.4-SNAPSHOT.jar'.  </p>
  
  <p>Is there some file/class that registeres the 'smtp' protocol, and it could be happening somewhere else in my classpath? </p>