Reputation: 553
OK so my issue is that I created some code in php to connect to GMAIL I got it to work for POP but not for IMAP and Im not sure what the issue is. While using the pop authhost it produced the connected header, and while using the imap authhost I get a page where it displays a 101 error net::ERROR_CONNECTION_RESET.
The following is the code Im using:
$authhost="{imap.gmail.com:993/imap/ssl/novalidate-cert}INBOX";
$user="username";
$pass="password";
if ($mbox=imap_open( $authhost, $user, $pass ))
{
echo "<h1>Connected</h1>\n";
imap_close($mbox);
} else
{
echo "<h1>FAIL!</h1>\n";
}
The solutions I tried to fix the problem was enabling ssl, imap extension which were enabled awhile back anyways. Also I disabled my firewall, but it didn't fix the problem either. I restarted my WAMP a couple of times to see if it did anything and that didn't work.
Hopely someone can tell me what Im doing wrong : /
*EDIT**
I fixed the issue by reinstalling WAMP and activating the imap module in apache called imagemap and it works :).
Upvotes: 2
Views: 1087
Reputation: 553
I fixed the issue by reinstalling WAMP and activating the imap module in apache called imagemap and it works :).
Upvotes: 1
Reputation: 10880
Have you made sure "IMAP Access" is enabled in your GMail settings?
Upvotes: 0