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?
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?