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? Link to comment https://forums.phpfreaks.com/topic/76553-help-w-imap_open/ 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. Link to comment https://forums.phpfreaks.com/topic/76553-help-w-imap_open/#findComment-387704 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", "[email protected]", "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. Link to comment https://forums.phpfreaks.com/topic/76553-help-w-imap_open/#findComment-387705 Share on other sites More sharing options...
SilveR316 Posted November 8, 2007 Share Posted November 8, 2007 What errors are they producing? Link to comment https://forums.phpfreaks.com/topic/76553-help-w-imap_open/#findComment-387706 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 Link to comment https://forums.phpfreaks.com/topic/76553-help-w-imap_open/#findComment-387708 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. Link to comment https://forums.phpfreaks.com/topic/76553-help-w-imap_open/#findComment-387825 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.