>>> Anil Kumar NT <[EMAIL PROTECTED]> 06-Apr-01 3:03:38 AM >>> >>I am using Java Mail API for sending e-mail attachments. >>But when I run the servlet which calls my mail class,it >>throws the following exception >>javax.mail.NoSuchProviderException >There is a similar problem in Inprise Application Server >4.1.. IAS 4.5 now supports Java mail. Check whether >your container supports java mail. All containers support javamail. It's just that some of them you'll have to tinker with. Sun's Javamail uses the classloader of the Authenticator object to find the javamail.providers details. If you supply with a null Authenticator and your container uses a speciall classloading scheme (this is the case with JServ) then javamail will have problems finding the providers registry. I suggest specifying an Authenticator in a servlet's init method to the javamail Session.getDefaultInstance() method. That way you have a hope that you'll be able to find the providers file. Nic Ferrier ___________________________________________________________________________ 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
