note 103762 added to function.imap-open
| From: | ph at hotmail dot fr | Date: | Mon, 02 May 2011 20:05:14 +0000 |
| Subject: | note 103762 added to function.imap-open | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-179346@lists.php.net to get a copy of this message | ||
For those having issues with Gmail (my problem was : "too many login failures" on a
webserver, but no problem on localhost..), instead of opening with :
$inbox = imap_open($hostname,$username,$password,NULL,1) or die('Cannot connect to Gmail:
' . imap_last_error());
Use :
$inbox = imap_open($hostname,$username,$password,NULL,1) or die('Cannot connect to Gmail:
' . print_r(imap_errors()));
You will be able to see the full list of errors that happened, and hopefully it will guide you to an
answer.
In my case, Google wanted me to unlock my account by typing in a captcha. But this error wasn't
clearly shown through imap_last_error().
Cheers,
PH
----
Server IP: 69.147.83.197
Probable Submitter: 82.67.220.113
----
Manual Page -- http://www.php.net/manual/en/function.imap-open.php
Edit -- https://master.php.net/note/edit/103762
Del: integrated -- https://master.php.net/note/delete/103762/integrated
Del: useless -- https://master.php.net/note/delete/103762/useless
Del: bad code -- https://master.php.net/note/delete/103762/bad+code
Del: spam -- https://master.php.net/note/delete/103762/spam
Del: non-english -- https://master.php.net/note/delete/103762/non-english
Del: in docs -- https://master.php.net/note/delete/103762/in+docs
Del: other reasons-- https://master.php.net/note/delete/103762
Reject -- https://master.php.net/note/reject/103762
Search -- https://master.php.net/manage/user-notes.php