Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

POP3 Provider error in JavaMail

Status
Not open for further replies.

blian

Programmer
Mar 17, 2001
1
CA
Hi,

I'm trying to setup a servlet to access pop3 account at yahoo using JavaMail 1.2(with pop3 provider support) and i receive the following error message when i execute the servlet.

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)

and the following is my code:
// connect to pop3 server
Store store = session.getStore("pop3");
store.connect("pop.mail.yahoo.com", -1, _userid, _passwd);

Anyone have any clue why i can't access the pop3 account?
The pop3 server is correct.

any ideas and help is very much appreciated!

thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top