PDA

View Full Version : imap_open()


richardmulhern
03-18-2004, 07:39 AM
Just trying to play with some of the imap functions, and i'm getting some problems.

if i do any type of connection at all like:

if(imap_open("{localhost:110/pop3}", "lunchbox@lunchbox-militia.com", "mypass")) {
echo 'Connection success!';
} else {
echo 'Connection failed';
}

The page just hangs and then will timeout. Any suggestions?

CubedThree
03-18-2004, 03:31 PM
Originally posted by richardmulhern
Just trying to play with some of the imap functions, and i'm getting some problems.

if i do any type of connection at all like:

if(imap_open("{localhost:110/pop3}", "lunchbox@lunchbox-militia.com", "mypass")) {
echo 'Connection success!';
} else {
echo 'Connection failed';
}

The page just hangs and then will timeout. Any suggestions?

I think the function call should look like this:


imap_open ("{localhost:110/pop3}INBOX", "user_id", "password");

paolorulez
03-18-2004, 04:59 PM
uhm check your phpinfo..,if imap functons is disabled send TroubleTickets

regards