[Opensource] Problem with sending email
Mike Traum
mtraum at jgroup.net
Thu Dec 11 14:03:07 PST 2003
Probably a lib or classpath issue. Are you using mail.jar or
mailapi.jar? Make sure you don't a have conflict between your webapp
libs and the Tomcat common libs (mail.jar is usually there).
Also, I believe that you can have problems if activation.jar and
mail.jar have a version conflict. The easiest way is to make sure that
there's only one of each of these in the classpath.
mike
On Thu, 2003-12-11 at 10:45, Max wrote:
> Hi,
>
> I had email working fine in my app some time ago and then somewhere alonmg the line something changed and I don't know
> what. When I try to use user.notify() now I get an error like:
>
> javax.mail.NoSuchProviderException: smtp
> at javax.mail.Session.getService(Session.java:611)
> at javax.mail.Session.getTransport(Session.java:541)
> at javax.mail.Session.getTransport(Session.java:484)
> at javax.mail.Session.getTransport(Session.java:464)
> at javax.mail.Session.getTransport(Session.java:519)
> at com.jcorporate.expresso.core.misc.EMailSender.send(EMailSender.java:492)
> at com.jcorporate.expresso.core.misc.EMailSender.send(EMailSender.java:547)
> at com.jcorporate.expresso.core.security.User.notify(User.java:794)
> at com.jcorporate.expresso.core.security.User.notify(User.java:765)
> at com.jcorporate.expresso.core.job.Job.finish(Job.java:255)
> at com.jcorporate.expresso.core.job.Job.finish(Job.java:196)
>
> It seems that Tomcat maybe doesn't know about smtp anymore. Does anyone have any idea where I can look?
>
> Thanks,
> Max
>
> _______________________________________________
> Opensource mailing list
> Opensource at jcorporate.com
> http://mail.jcorporate.com/mailman/listinfo/opensource
> Archives: http://mail.jcorporate.com/pipermail/opensource/
--
Mike Traum
--
JGroup Expert
Expresso Core Developer
Providing support and development services - Available Now!
More information about the Opensource
mailing list