Hi,
I tried to use the sample of servlet(JavaMail) from javamail-1.1.2
package, but when I input the imap address imap04.us.oracle.com and
pressed login, I got the following error message:
javax.mail.NoSuchProviderException: No provider for imap
I also tried in my another servlet program, it reported the following
error:
javax.mail.NoSuchProviderException: No provider for Address
type: rfc822
at javax.mail.Session.getTransport(Session.java:458)
at javax.mail.Transport.send0(Compiled Code)
at javax.mail.Transport.send(Transport.java:73)
at NewsManagement.SendNews(NewsManagement.java:771)
at NewsManagement.NewsNotification(Compiled Code)
at InterCaster.doGet(InterCaster.java:96)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:715)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
at
com.sun.web.core.ServletWrapper.handleRequest(ServletWrapper.java:140)
at
com.sun.web.core.InvokerServlet.service(InvokerServlet.java:169)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:840)
at
com.sun.web.core.ServletWrapper.handleRequest(ServletWrapper.java:140)
at com.sun.web.core.Context.handleRequest(Context.java:375)
at com.sun.web.server.ConnectionHandler.run(Compiled Code)
But if I tried it in application instead of servlet, all of these
work correctly and I did received the email. I am wondering if there is
something wrong with the combination of servlet and javamail.
Thansk.
Xiaohua
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html