Forum Moderators: coopster

Message Too Old, No Replies

Php, IMAP & GMAIL

Php, IMAP & GMAIL

         

Mahabub

4:04 pm on Jun 3, 2009 (gmt 0)

10+ Year Member



I've made a script that can read email from gmail.com using imap. Last few days its not working and showing the below error message.

Warning: imap_open() [function.imap-open]: Couldn't open stream {gmail-imap.l.google.com:993/imap/ssl/novalidate-cert}INBOX in test.php on line 1
can't connect: Can't connect to gmail-imap.l.google.com,993: Connection timed out

And I used the below code.

$mbox = imap_open ("{gmail-imap.l.google.com:993/imap/ssl/novalidate-cert}INBOX", "test@gmail.com", "123456") or die("can't connect: " . imap_last_error());

Did i made any mistake...:-? Or gmail changed something. Any help would be appreciated.

Thanks
Mahabub

coopster

6:46 pm on Jun 6, 2009 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Did you ever figure out what was causing this issue, Mahabub?