Jump to content

[Solved] imap php extension


hitman81

Recommended Posts

:ph34r: There is a problem with IMAP PHP EXTENSION. If i try to execute a simple script with imap_open() function, i obtain

 

Warning: imap_open() [function.imap-open]: Couldn't open stream {imap.aol.com:993/imap/ssl}INBOX in /home/hitman/public_html/index.php on line 2

can't connect: Can't connect to open.gopen.imap.aol.com,993: Connection timed out

 

i think that surely it's a problem of server configuration.

I hope that server administrator can solve this problem soon.

 

 

P.S. I'm talking about a FREE HelioHosting

Link to comment
Share on other sites

Did you enable IMAP on your Gmail account? Also, make sure you're addressing the right port and using the right authentication - Gmail is very picky.

 

Sure, i'm not a newbie.

Are you a server administrator? Did you try to use imap php extension ?

The problem is on helios server configuration.

Link to comment
Share on other sites

Post your PHP code snippet that you use to connect to Gmail.

 

Here the code, is very very simple:

 

<?php

$mbox = imap_open ('{imap.aol.com:993/imap/ssl}INBOX', 'user', 'pass' ) or die("can't connect: " . imap_last_error());

print_r($mbox);

?>

 

or (for gmail account)

 

<?php

$mbox = imap_open ('{imap.gmail.com:993/imap/ssl}INBOX', 'user', 'pass' ) or die("can't connect: " . imap_last_error());

print_r($mbox);

?>

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...