Re: Java Mail with POP3
In the first way it give's me an 500 error. With the second it works. I put the last versions of JavaMail and Pop3 packages and it's working fine. I'll test it more next days. Thank you, Cosmin Popa And when I execute the servlet, next error apear: javax.mail.NoSuchProviderException: No provider for pop3 I put the pop3 jar in the orion/lib and /orion ... but nothing. Cosmin, this is a shot in the dark, but try putting the jar file in path-to-jdk/jre/lib/ext. If you don't want to do that, try editing the MANIFEST file in orion.jar and append the path to pop3.jar on the line that starts with "Classpath:". -Joe Walnes
Java Mail with POP3
Can you explain me how to use java mail with pop3 support? I have tryed: /// PrintWriter out; /// ... Session sess; Store stor; try { sess=Session.getDefaultInstance(System.getProperties(),null); stor=sess.getStore("pop3"); stor.connect("mail.dnt.ro","user","xxx"); stor.close(); } catch (Exception e) { out.println("Error :"+e.toString()); } out.println("Done"); ///- And when I execute the servlet, next error apear: javax.mail.NoSuchProviderException: No provider for pop3 I put the pop3 jar in the orion/lib and /orion ... but nothing. Cosmin Popa
Re: Java Mail with POP3
And when I execute the servlet, next error apear: javax.mail.NoSuchProviderException: No provider for pop3 I put the pop3 jar in the orion/lib and /orion ... but nothing. Cosmin, this is a shot in the dark, but try putting the jar file in path-to-jdk/jre/lib/ext. If you don't want to do that, try editing the MANIFEST file in orion.jar and append the path to pop3.jar on the line that starts with "Classpath:". -Joe Walnes