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
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