the host configuration:
'--with-imap=/usr/local/include/c-client'

the code:

$m_serv = "mail.host.com:110/pop3";
$mbox = imap_open("\\{$m_serv}INBOX",$m_user,$m_pass)
        or die("can't connect: ".imap_last_error());

the problem:
Warning: Couldn't open stream {mail.host.com:110/pop3}INBOX in /path/to/file.php on line 33
can't connect: sub.host.com ESMTP Sendmail 8.12.1/8.12.1; Thu, 10 Oct 2002 12:50:27 -0700

help???

    more attempts:

    //   $m_serv = "mail.host.com:143"; 
    //   $m_serv = "mail.host.com:143/notls"; 
    //   $m_serv = "mail.host.com:110"; 
    //   $m_serv = "mail.host.com:110/pop3"; 
    
    $mbox = imap_open("\\{$m_serv}INBOX",$m_user,$m_pass) 
            or die("can't connect: ".imap_last_error()); 
    

    more errors:

    Warning: Couldn't open stream {mail.host.com:143}INBOX
    in /path/to/file.php on line 33
    can't connect: IMAP Authentication cancelled

    Warning: Couldn't open stream {mail.host.com:143/notls}INBOX
    in /path/to/file.php on line 33
    can't connect: IMAP Authentication cancelled

    Warning: Couldn't open stream {mail.host.com:110}INBOX
    in /path/to/file.php on line 33
    can't connect: [CLOSED] IMAP connection broken (server response)

    Warning: Couldn't open stream {mail.host.com:110/pop3}INBOX
    in /path/to/file.php on line 33
    can't connect: POP3 Authentication cancelled

    😕 any ideas? 😕

    the host configuration:
    php 4.1.2 '--with-imap=/usr/local/include/c-client'
    IMAP c-Client Version 4.1
    Linux 2.4.18
    Apache/1.3.26

      no way, no how this will work:

      $m_serv = "mail.host.com:###"; 
      $mbox = imap_open("\\{$m_serv}INBOX",$m_user,$m_pass) 
              or die("can't connect: ".imap_last_error());
      

      but, if i hard code it:

      $mbox = imap_open("{mail.host.com:###}","m_user","m_pass") 
              or die("can't connect: ".imap_last_error());
      

      then it works.

      any ideas as to why?

        Write a Reply...