View Single Post
  #1 (permalink)  
Old 12-06-2007, 03:14 PM
SBh SBh is offline
Member
 
Join Date: Sep 2007
Posts: 58
Default 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?
Reply With Quote