We help IT Professionals succeed at work.

How do I connect to POP using PEAR class from another server

Vallenwood asked
Medium Priority
Last Modified: 2012-08-13
I am using the "Net_POP3" class from the PEAR package in order to connect to a POP server and check messages. It works perfectly fine when run from the same server as the one hosting the email, but when I try to run it from a sister server with a different domain name, it churns for a minute and then returns "Generic login error." All login info is most definitely correct, as it works fine when on the same server.

I am not terribly familiar with the PEAR package so I hope someone who is, or a more IT-saavy person, might be able to tell me why the login is being rejected. Some PEAR setting? Something on the server blocking access? (Works fine when checking via a mail reader like Outlook Express.) Thank you in advance!
Watch Question

Did you read the documentaion available online? (here: http://pear.php.net/manual/en/package.networking.net-pop3.php ). Does it help at all? Do you get true or false when you use the connect() method?
Wish I can help


This problem was resolved by the web hosting company -- it was NOT a deficiency of the script or a configuration issue with it or the PEAR package. The issue, according to them, was with their APF firewall. They said that they reinstalled the APF firewall and this resolved the problem. So if you have a similar problem--your script can check POP mail on its own server but not on a different server--contact your web host and request that they examine their firewall or otherwise make sure one server is not blocking the other.
PAQ-ing this question and refunding 250 points.

Thanks !

The Experts Exchange
Community Support Moderator of all Ages

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.