HI guys

When i execute imap_open() in get this error message.

Warning:Couldnt open stream{my ip address:143} in /path/path/file_name.php

Iam using ....
Redhat 7.0
Apache_1.3.12
Php4.0.4pl1

My phpinfo() shows.....

IMAP SUPPORT- ENABLED
IMAP c-Client Version-4.1

Please give any info u can get on IMAP/Php apart from what i have asked u guys

thanx
brato

    Is the imap daemon installed/started on your server?

    Note that the imap stuff that you see in phpinfo() refers to support for imap functions in php NOT the actual imap itself

      hi Micheal

      Thanx for the reply.......

      Yeah the Imap daemon installed and running.

      The command i give it to run is imapd.Is it OK ?????

      The imap is then ready to accept commands and it also resonds to the commands.

      But my Php does not seem to interface with it.

      What do i do and how do i trouble shoot the problem....

      Please guide.........

      Hey !!! does Php work with POP3 if so can u tell me how????

      brato

        Can you include the list of arguments passed? for pop3 to work, simply change the port number 143 to 110.
        the command I used for the imap_open function is as such:

        $username=//your user name
        $password=//your user password
        $mailserver="{ip_address/pop3}";

        $link=imap_open($mailserver, $username, $password);

        Hope this can solve ur problem. If the problem persists, check your imap installation/configuration.

          Hi Mic

          I get this error "Clouldn't open stream{ipaddress/pop3}in path/path/......

          i have started
          impad-daemon
          ipop3d-daemon

          both the Daemons are running.......
          I dont understand what to do???????? :-(

          brato

            i think the problem lays most probably in your configuration settings of the daemons. did you configure the ip address properly and such? check it out.

              Write a Reply...