views:

37

answers:

2

Hey

I'm trying to retrieve emails from gmail using pop3 to my rails applicaiton. I get the error - "getaddrinfo: Temporary failure in name resolution" when i try to retrieve the email.

the weird thing is, it works when i try it at home but not at my university. i'm guessing it has something to do with the internet connection.

please help!

A: 

This generally means you aren't getting a response from DNS. Your university connection is probably behind a proxy preventing you from directly accessing the Internet. If so, this proxy must be specified in your code. Check your POP3 library documentation, or failing that, you may be able to use a library like socksify that redirects TCP connections through your SOCKS proxy.

thanks! it worked now.
Kartik Rao
A: 

Simple. You may be directed through a proxy server. Set up a new connection ,set up your college settings,restart your server and it should work.

Shreyas Satish