我想通过谷歌('google-mail-xoauth-tools')在这里使用三脚Oauth PHP代码访问Gmail:http://code.google.com/apis/gmail/oauth/code.html。我有我的域名注册,一切似乎去罚款与OAuth的,但我授权的访问后,我得到这个错误:Gmail三方OAuth访问 - Zend_Mail_Protocol_Exception
Fatal error: Uncaught exception 'Zend_Mail_Protocol_Exception' with message
'cannot connect to host; error = Connection refused (errno = 111)'
in /home/tchaymor/public_html/gmail/Zend/Mail/Protocol/Imap.php:100
Stack trace: #0 /home/tchaymor/public_html/gmail/Zend/Mail/Protocol/Imap.php(61):
Zend_Mail_Protocol_Imap->connect('imap.gmail.com', '993', true)
#1 /home/tchaymor/public_html/gmail/three-legged.php(170):
Zend_Mail_Protocol_Imap->__construct('imap.gmail.com', '993', true)
#2 {main} thrown in /home/tchaymor/public_html/gmail/Zend/Mail/Protocol/Imap.php on line 100
这是使用OAuth与任何谷歌产品我的第一次,所以它可能是一些完全没有脑子我丢了。任何建议将是最受欢迎的(作为更容易选择的建议)。我更多的是设计师而不是编码器,所以越简单越好。
谢谢快速和全面的反应。这是我的回应: 1)我认为这个错误与临时封锁有所不同,无论如何,即使在没有任何尝试的情况下数小时也没有解除。 2)allow_url_fopen已启用 4)此连接似乎工作得很好,但经常会出现超时错误。 至于防火墙,我已经联系了我的托管公司,他们向我保证没有防火墙问题,但有问题通过ssh(HostGator)检查自己。 – tchaymore 2010-06-05 03:39:20
终于得到ssh访问和我的telnet连接被拒绝,所以可能是防火墙问题。 – tchaymore 2010-06-05 03:47:20
呃,希望你没有复制粘贴,那里只是在telnet行中过多'9',直到几秒钟前。如果你这样做,重新检查:) – Wrikken 2010-06-05 03:50:34