Can anyone connect to Gmail account using PHP?
I am trying to connect Gmail account using imap_open function of PHP.
I have used the imap_open function like this:
For imap access
imap_open ("{imap.gmail.com:993/imap/ssl}Inbox", "username@gmail.com", "password")
For POP access
imap_open("{pop.gmail.com:995/pop3/ssl}Inbox","username@gmail.com", "pasword")
In both of the cases it failed to connect. So, can anyone tell me how to connect gmail accounts using imap_open function?
|