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.

addpop runs fine but email isn't created

Discussion in 'cPanel Developers' started by nelwa, Feb 6, 2010.

  1. nelwa

    nelwa Registered

    Joined:
    Jul 21, 2008
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    I have cPanel version 11.24.5. I am trying to add an email account via an api2 query, which seems to run fine, but when I login on cpanel the email wasn't created...

    I know I'm authenticating correctly, because I can list bandwidth usage, etc. without any problems...

    This is an urgent problem and any help would be greatly appreciated.

    PHP:
    $ip 'dedicatedserver.com';
    $root_pass 'whmusername';
    $root_user 'whmpassword';
    $account 'clientaccount';
    $xmlapi = new xmlapi($ip);
    $xmlapi->set_debug(1);
    $xmlapi->set_http_client('curl');
    $xmlapi->password_auth($root_user,$root_pass);

    $arr $xmlapi->api2_query($account"Email""addpop", array(domain=>$res['domain'], email=>$email1password=>$password1quota=>0) );
    var_dump($arr);
    var_dump outputs the following:
    PHP:
    Array
    (
        [
    apiversion] => 2
        
    [func] => addpop
        
    [module] => Email
    )
    Thanks for your help in advance
     
  2. MattDees

    MattDees cPanel Product Owner
    Staff Member

    Joined:
    Apr 29, 2005
    Messages:
    417
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    The API2 call was not added until 11.25.0. There is an API1 call for this that uses the following parameters:

    Email::addpop( $email, $password, $quota, $popdomain )
     
Loading...

Share This Page