Gmail 3-legged OAuth access -- Zend_Mail_Protocol_Exception

Posted by tchaymore on Stack Overflow See other posts from Stack Overflow or by tchaymore
Published on 2010-06-04T21:36:19Z Indexed on 2010/06/12 12:13 UTC
Read the original article Hit count: 551

Filed under:
|
|
|

I'm trying to access Gmail by using three-legged Oauth PHP code provided by Google ('google-mail-xoauth-tools') here: http://code.google.com/apis/gmail/oauth/code.html. I have my domain registered and everything seems to go fine with OAuth, but after I authorize access I get this error:

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 

This is my first time using OAuth with any Google products, so it could be something totally brainless I'm missing. Any suggestions would be most welcome (as suggestions for easier alternatives). I'm more on the designer rather than coder end, so the simpler the better.

© Stack Overflow or respective owner

Related posts about php

Related posts about zend-framework