Home > Errors & Exceptions > javax.mail.NoSuchProviderException: Unable to locate provider for protocol: smtp

javax.mail.NoSuchProviderException: Unable to locate provider for protocol: smtp

July 1, 2012

javax.mail.NoSuchProviderException: Unable to locate provider for protocol: smtp

This Problem got solved by adding the below maven dependencies:

<dependency>
<groupId>org.apache.geronimo.javamail</groupId>
<artifactId>geronimo-javamail_1.4_mail</artifactId>
<version>1.8.1</version>
</dependency>
<dependency>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-activation_1.1_spec</artifactId>
<version>1.1</version>
</dependency>
Advertisements
Categories: Errors & Exceptions
%d bloggers like this: