Cannot Send Email Due to 'javax.mail.NoSuchProviderException' SMTP Error

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

When Confluence tries to send mail, a "javax.mail.NoSuchProviderException: smtp" error is thrown.

Cause

Two different versions of Sun's Javamail libraries are in the application classpath. When Confluence tries to send an email, Java gets confused as to which version of the library it should be using.

Resolution

If (and only if) you are encountering this error, remove the javamail-x.jar and activation-1.x.jar files from the confluence/WEB-INF/lib directory of your Confluence installation, then restart Confluence.


Last modified on Feb 23, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.