I keep getting No Provider Error when trying to access pop3 mail server.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Raymond_Lian
Posted On:   Monday, March 19, 2001 12:51 AM

Here is portion of my servlet code: // connect to pop3 server Store store = session.getStore("pop3"); store.connect("pop.mail.yahoo.com", -1, user, password); // Get folder Folder folder = store.getFolde("INBOX"); folder.open(Folder.READ_ONLY); whenever I tried to execute my servlet, I keep getting javax.mail.NoSuchProviderException: No provider for pop3 at javax.mail.Session.getProvider(Session.java:249) at javax.mail.Session.getStore(Session.java:323) at javax.mail.Session.getStore(Session.java:303) at MailSenderServlet2001.doPost(MailSenderServlet2001.java:91) I am using JavaMail 1.2 API. Do I need to   More>>

Here is portion of my servlet code:

// connect to pop3 server
Store store = session.getStore("pop3");
store.connect("pop.mail.yahoo.com", -1, user, password);


// Get folder
Folder folder = store.getFolde("INBOX");
folder.open(Folder.READ_ONLY);

whenever I tried to execute my servlet, I keep getting

javax.mail.NoSuchProviderException: No provider for pop3
at javax.mail.Session.getProvider(Session.java:249)
at javax.mail.Session.getStore(Session.java:323)
at javax.mail.Session.getStore(Session.java:303)
at MailSenderServlet2001.doPost(MailSenderServlet2001.java:91)

I am using JavaMail 1.2 API. Do I need to set anythin to get this working? I have seen all the examples on how to access pop3 account and every examples i see is simimlar to my code.

Your help is very much appreciated. Thanks

   <<Less

Re: I keep getting No Provider Error when trying to access pop3 mail server.

Posted By:   Raymond_Lian  
Posted On:   Monday, March 19, 2001 01:04 AM

Please disregard this question.

Sorry for the trouble.
About | Sitemap | Contact