• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

unknownhost Exception

 
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello, i'm trying to write an email client, and when i try to connect to a server by means of pop, to check the inbox, i keep getting athe following exception:
javax.mail.MessagingException: Connect failed;
nested exception is:
java.net.UnknownHostException: pop.unlimitedmail.org

at com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:106)

at javax.mail.Service.connect(Service.java:234)

at javax.mail.Service.connect(Service.java:135)

and im using an smtp server called unlimited mail and the host name i used is "pop.unlimitedmail.org". and i have an account with these people.
So can anyone please help me out?
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Either that's the wrong name for the server, or you can't get to that server from your computer. If you are sure it is the right name, then type

PING pop.unlimitedmail.org

at a command line, and see if you get similar errors there. Networking questions like this one are best handled by somebody who knows how your network is configured. This could be a DNS problem, or there could be a firewall or proxy server blocking the route, or several other things.
 
Adewale Adebusoye
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yeah i pinged their server and the request timed out. so what do you advise one to do? look for another smtp server?
 
reply
    Bookmark Topic Watch Topic
  • New Topic