Email problems

Hello

using teamcity 4.5.4 build 8975. When sending an email notification the server throws following exception


[2009-08-20 11:06:44,916]   WARN - ication.email.EMailNotificator - Cannot send email notification: javax.mail.NoSuchProviderException: smtp



I see that there is a javamail.jar in the tomcat hosting teamcity app (in addition to mail.jar in teamcity webapp). This jar might be of different version. Is this causing the problem ?

thanks


3 comments
Comment actions Permalink

Hi!

In the server administration part, there's an Email Notifier part.
The form has a Test connection button.

Does-it work ?

Olivier.

0
Comment actions Permalink

No, that fails with the same error as described above

thanks

0
Comment actions Permalink

Hi again,

This exception is thrown when Session attempts to instantiate a Provider that doesn't exist... or the JVM can't choose a version of Sun's Javamail libraries in the classpath.

I think you have a conflict. Try to remove one jar, maybe TeamCity's one, and keep tomcat one.

Regards,

Olivier.

0

Please sign in to leave a comment.