Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem retrieving mail from IMAP server using php-imap

Status
Not open for further replies.

kdshah

Programmer
Oct 15, 2002
8
US
I want to retrieve mails from an IMAP server.

I am running my script on a machine different from where the IMAP server is running.

For doing this, I am making use of imap_open function that comes with php-imap package. Both php and php-imap packages have version 4.1.2 (release 7).

Now, when I am trying to open an IMAP stream to the mail server, I get a warning 'couldn't open stream'..

here is what i am exactly doing.

$inbox = imap_open("{mail.mydomain.com}","username","password");

I also tried

$inbox = imap_open("{mail.mydomain.com}INBOX","username","password");

and also tried specifying the port number 143 explicitly. However, none of them worked. Any ideas of why am I getting this error?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top