Right this is stressing me out! I'm trying to connect to my gmail account through my website and I'm using this:
<?php
$server = "imap.gmail.com";
$user = "user@gmail.com";
$pass = "pass";
$conn = @imap_open("\{$server:993/imap/ssl}INBOX", $user, $pass)
or die("Connection to server failed: ". imap_last_error());
?>
(obviously with my own u/p) I have also enabled it in googlemail i'm using MAMP server. I get this error:
Connection to server failed: Can't open mailbox \{imap.gmail.com:993/imap/ssl}INBOX: no such mailbox
Any suggestions? :(