Hi,

I have installed PHP Version 4.1.2 in Windows 2000. I want to use imap functions in my application. php_info() is showing that imap is enabled and IMAP c-Client Version is 4.1.

If I use imap_open() function I am receiving the following warning...
PHP Warning: Couldn't open stream {mail.domain.com/pop3:110}INBOX in E:\Projects\php\email\inbox.php on line 59

Also imap_last_error() function is returning the following error...
Can't connect to mail.domain.com,110: Refused (10061)

My imap_open function call is .......
imap_open ("{".$mail_host."/pop3:".$mail_port."}INBOX", $user_name, $user_pass);

In order to explain my problem I am using my pop server name as 'domain'.

I have tried the same program in my linux box and is working fine. I can able to connect and receive the mails from my pop server.

What could be the problem in windows version???

Any Help???

Thanks in advance,
Selvakumar.

    Dear daveyboy,

    Thanks for your reply. Unfortunately the answer you gave did not workout. Can you please give any other suggessions on this.

    I shall be greatful for you.

    Thanks,
    Selvakumar

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

        Dear Bob,
        I appreciate your reply. Thanks very much.
        I had tried this previously and it refused to work. Apart from this, please let me know, if there are any other suggesstions.

        I have also noticed that system can not communicate with other system thru php code. For example, If I try to open a remote file(server is win 2k) a warning message is thrown as below.....
        PHP Warning: php_hostconnect: connect failed in E:\Projects\php\email\inbox.php on line 58

        Is it related to any win 2k security option issue?

        Thanks once again.
        Selvakumar

          check your firewall settings. That would have an effect

            Thanks a lot folks. Yes. It is firewal problem only. Now it is working fine. Thanks once again.

            -Selvakumar

              Write a Reply...