我需要阅读来自 gmail 的电子邮件,但我无法连接到 gmail pop3 服务器。有人能帮我一下吗 ?
这里的代码:
$pop3 = new POP3;
$pop3->server = 'pop.gmail.com';
$pop3->user = 'username';
$pop3->passwd = 'password';
$pop3->debug = true;
$pop3->pop3_connect()
结果:
Warning: fsockopen() [function.fsockopen]: unable to connect to pop.gmail.com:110 (Connection timed out) in /public_html/cron/pop3.php on line 64
谢谢