I am using the following scrip and the return value is "0 access denied"
How can I make this work? I got cpanel 11.30.1 (build 4)
I am desperately in need of help!
here is the script:
<?php
include 'xmlapi.php';
$ip = "111.111.111.111";
$account = "my_cpanel_account_name";
$account_pass = "my_cpanel_account_password";
$email_user = "test";
$email_password = "a11111";
$email_domain = "mydomainname.com";
$email_quota = '100';
$xmlapi = new xmlapi($ip);
$xmlapi->password_auth($account, $account_pass); /*<-- USE USER ACCOUNT AUTH*/
$xmlapi->set_output('xml');
$result = $xmlapi->api1_query($account, "Email", "addpop", array($email_user, $email_password, $email_quota, $email_domain) );
echo "outcome =".$result;
?>
How can I make this work? I got cpanel 11.30.1 (build 4)
I am desperately in need of help!
here is the script:
<?php
include 'xmlapi.php';
$ip = "111.111.111.111";
$account = "my_cpanel_account_name";
$account_pass = "my_cpanel_account_password";
$email_user = "test";
$email_password = "a11111";
$email_domain = "mydomainname.com";
$email_quota = '100';
$xmlapi = new xmlapi($ip);
$xmlapi->password_auth($account, $account_pass); /*<-- USE USER ACCOUNT AUTH*/
$xmlapi->set_output('xml');
$result = $xmlapi->api1_query($account, "Email", "addpop", array($email_user, $email_password, $email_quota, $email_domain) );
echo "outcome =".$result;
?>