aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes unknown host exception error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Reply locked New topic

unknown host exception error

gayathri murugesan
Ranch Hand

Joined: Dec 21, 2009
Posts: 32
we are retrieving mail from gmail server.we could connect to the gmail server without proxy. As there is a proxy setting in our college we couldn't connect to the gmailserver even after setting the system properties. we could connect to from our browser but we couldn't connect from our program.

i am getting the exception as
at com.sun.mail.imap.IMAPStore.protocolConnect(
at javax.mail.Service.connect(
at javax.mail.Service.connect(
at EmailClient.connect(
at EmailClient.main(
at Source)
at Source)
at Source)
at Source)
at Source

at com.sun.mail.util.SocketFetcher.createSocket(
at com.sun.mail.util.SocketFetcher.getSocket(
at com.sun.mail.iap.Protocol.<init>(
at com.sun.mail.imap.protocol.IMAPProtocol.<init>(

at com.sun.mail.imap.IMAPStore.protocolConnect(
... 4 more

please help!

Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 9990

Please do not post the same question multiple times.
Original here

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
I agree. Here's the link:
subject: unknown host exception error
Similar Threads
Read emails from Microsoft Outlook Using Java Mail
error in retrieving mail through a proxy.
Problem using Java Mail API
send email using gmail account
Unknown SMTP host for gmail