dcsimg
How do I use JavaMail in jsp?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   z_catherine
Posted On:   Monday, May 21, 2001 11:37 PM

The send mail application sample is ok when I run it, but if I change them into Jsp,it's can't run, always prompt:
--Exception handling in msgsendsample.java
javax.mail.NoSuchProviderException: No provider for Address type: rfc822
at javax.mail.Session.getTransport(Session.java:475)
at javax.mail.Transport.send0(Transport.java:154)
at javax.mail.Transport.send(Transport.java:80)
......

Help!What can I do?
If JavaMail can't run correctly in JSP?

Thanks

Re: How do I use JavaMail in jsp?

Posted By:   John_Zukowski  
Posted On:   Tuesday, May 22, 2001 04:07 PM

Which web server are you using? There is already several entries in the FAQ and forums that address this problem. Make sure your web server is setup properly to use the latest JavaMail libraries. Some come with some old versions that don't work right and you have to manually replace them (and make sure they are earlier in the CLASSPATH then the ones that come with the server...
About | Sitemap | Contact