Re: Java Mail with POP3

2000-04-26 Thread Cosmin Popa

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

2000-04-25 Thread Cosmin Popa

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

2000-04-25 Thread Joe Walnes


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