addpop runs fine but email isn't created

nelwa

Member
Jul 21, 2008
8
1
53
South Africa
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=>$email1, password=>$password1, quota=>0) );
var_dump($arr);
var_dump outputs the following:
PHP:
Array
(
    [apiversion] => 2
    [func] => addpop
    [module] => Email
)
Thanks for your help in advance
 

MattDees

Well-Known Member
Apr 29, 2005
416
1
243
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 )