I been wanting to make a PHP program that connects to gmail and prints out all the emails you have in gmail.
I been reading tutroials on imap, and I been trying to CONNECT to gmail, and it just doesn't work
This is the code I'm usingWarning: imap_open() [function.imap-open]: Couldn't open stream {imap.gmail.com:993/imap/ssl}INBOXz in /home/robin105/public_html/txt/2index.php on line 4
can't connect: Can't connect to gmail-imap.l.google.com,993: Connection timed out
Code: Select all
<?php
$mbox = imap_open("{imap.gmail.com:993/imap/ssl}INBOX", "123@gmail.com","123")
or die("can't connect: " . imap_last_error());
?>And yes, I have IMAP, and POP3 Enabled in GmailIMAP c-Client Version = 2007e
SSL Support = enabled
Kerberos Support = enabled
Any help