Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    51
    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 Well-Known Member

    Joined:
    Apr 29, 2005
    Messages:
    416
    Likes Received:
    1
    Trophy Points:
    243
    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 )
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice