Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #38495
| Newsgroups | comp.lang.java.programmer |
|---|---|
| Date | 2018-07-25 04:00 -0700 |
| References | <78pa8a$lah$1@news.nuri.net>#1/1> |
| Message-ID | <42da993b-7e53-45e2-87e2-97163e01aa47@googlegroups.com> (permalink) |
| Subject | Re: Use JavaMail API |
| From | kumarimeenu09@gmail.com |
On Thursday, 28 January 1999 13:30:00 UTC+5:30, 전정일 wrote:
> I try to use JavaMail API...
> but, I run "java msgshow" then
>
> javax.mail.NoSuchProviderException: No provider for IMAP
> at javax.mail.Session.getProvider(Session.java:232)
> at javax.mail.Session.getStore(Session.java:306)
> at javax.mail.Session.getStore(Session.java:286)
> at msgshow.main(msgshow.java:23)
>
> I install javamail classpath (mail.jar) and pop3(pop3.jar)
>
> How to setup IMAP provider and POP3 provider?
>
> Thanks in advance
Hi ,
I am getting the same error msg , when I used Imap for mailreding . Colud you please assist me , How can I proceed and resolved this problem .
Error Msg -
javax.mail.NoSuchProviderException: No provider for imap
at javax.mail.Session.getProvider(Session.java:479)
at javax.mail.Session.getStore(Session.java:553)
at javax.mail.Session.getStore(Session.java:533)
and my code is -
Properties properies = new Properties();
properies.setProperty("mail.store.protocol","imaps");
Session emailSession= Session.getDefaultInstance(properies);
Store emailStore = emailSession.getStore("imaps");
emailStore.connect("imap.gmail.com","abc@gmail.com", password);
Thanks in Advance.
Kumari Meenu
Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread
Re: Use JavaMail API kumarimeenu09@gmail.com - 2018-07-25 04:00 -0700
Re: Use JavaMail API Eric Sosman <esosman@comcast-dot-net.invalid> - 2018-07-25 10:05 -0400
Re: Use JavaMail API Eric Douglas <e.d.programmer@gmail.com> - 2018-07-25 08:40 -0700
Re: Use JavaMail API Martin Gregorie <martin@mydomain.invalid> - 2018-08-01 00:49 +0000
csiph-web