rhiane Posted November 8, 2007 Share Posted November 8, 2007 What I am trying to do is simply open my gmail account from another browser with the imap_open and display the contents of the inbox. So far everything that I have tried has given me an error. Any suggestions? Quote Link to comment Share on other sites More sharing options...
SilveR316 Posted November 8, 2007 Share Posted November 8, 2007 It would help if you listed what errors you are getting and show the code that produces them. We don't exactly have a lot to go on without any further details. Quote Link to comment Share on other sites More sharing options...
rhiane Posted November 8, 2007 Author Share Posted November 8, 2007 So far I have tried with a few code examples off of the php.net manual: $mbox = imap_open ("{imap.gmail.com:993/imap/ssl}INBOX", "username@gmail.com", "password") or die("can't connect: " . imap_last_error()); The following works for connecting via POP3 to a gmail server: imap_open("{pop.gmail.com:995/pop3/ssl/novalidate-cert}INBOX", $username, $pasword); Those were the only ones that were for gmail. Thanks! R. Quote Link to comment Share on other sites More sharing options...
SilveR316 Posted November 8, 2007 Share Posted November 8, 2007 What errors are they producing? Quote Link to comment Share on other sites More sharing options...
rhiane Posted November 8, 2007 Author Share Posted November 8, 2007 my browser wont even load it at times. other it says that the connection cant be made Quote Link to comment Share on other sites More sharing options...
SilveR316 Posted November 8, 2007 Share Posted November 8, 2007 Somehow I don't think thats related to php. To me it seems like something is blocking the connection. Do you have a firewall? Make sure it allows port 993 and 995 outbound. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.