posted 19 years ago
Hello Everybody,
I want to read a mail from outlook express ... and i m getting this error..
"Mail Error::javax.mail.NoSuchProviderException: No provider for imap"
I installed one mail server.... attached is the code where i m getting this error in line no 6.
1. props.put("mail.smtp.port", "26");
2.props.put("mail.pop3.port", "111");
3.props.put("com.sun.mail.imap", "192.158.105.001");
4.Session session = Session.getDefaultInstance(props, null);
5.try{
6.Store store = session.getStore("imap");
7.store.connect("192.158.105.001", "joseph", "joseph");
.
..
..
}
Plz anyone here who can help me.... vishal u r doing this instead of this... actual code is this .....
plz anyone help me by giving the code to read a mail.....
Its my deadline period... so plz help me asap....
Thanx a lot for ur co-opeartion
Vishal