The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

imap php error

Discussion in 'General Discussion' started by tundra96, Jul 11, 2003.

  1. tundra96

    tundra96 Active Member

    Joined:
    Jun 24, 2003
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    0
    Anyone have an idea why I'm getting this error ?


    Can not authenticate to IMAP server: AUTHENTICATE LOGIN failed




    Did I forget to compile somthing into php ?

    Thanks
    Mike

    cPanel.net Support Ticket Number:
     
  2. kcdworks

    kcdworks Well-Known Member

    Joined:
    Jul 28, 2002
    Messages:
    186
    Likes Received:
    0
    Trophy Points:
    16
    It's probably just an error in the code

    Can you paste the code you're using to connect to the IMAP server?

    cPanel.net Support Ticket Number:
     
  3. tundra96

    tundra96 Active Member

    Joined:
    Jun 24, 2003
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    0
    I did not write the script so I will post the parts I think connect to the server


    PHP:

    <?php
    set_time_limit
    (0);
    include (
    'vars.inc');
    ///novalidate-cert
    $server='{spamclear.com:143/imap}';


    -----------------------------------------------------------------------------

    echo 
    "Connecting to POP3 server ...";
    echo 
    "$user , $password \n";
    $mbox imap_open($server,$user."@".$surl,$password );
    echo 
    imap_last_error();
    if (
    $mbox!=false)
    {
    //start mbox check
    echo "done.\n";
    echo 
    " Ok , found userid = ".$userid." \n";

    echo 
    "Counting messages ...";

    $msgnum=imap_num_msg($mbox);
    $header=getHeaders($mbox,0,$msgnum);
    echo 
    "done.\n";



    cPanel.net Support Ticket Number:
     
  4. tundra96

    tundra96 Active Member

    Joined:
    Jun 24, 2003
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    0
Loading...

Share This Page