[ERROR]Creating email with xmlapi
Hello, i have one script to create emails in cpanel, with reseller account it's ok but in client accounts i have the error:Access denied 0 Access denied.
follow script in resseler account:
password_auth($account, $account_pass);
//$xmlapi->set_port(2083);
$xmlapi->set_output('xml');
echo $xmlapi->api1_query($account, "Email", "addpop", array($email1, $email_password, $email_quota, $email_domain));
?>
and the script for client account(not working):
password_auth($account, $account_pass);
//$xmlapi->set_port(2083);
$xmlapi->set_output('xml');
echo $xmlapi->api1_query($account, "Email", "addpop", array($email1, $email_password, $email_quota, $email_domain));
?>
-
Hello :) I have moved this to the cPanel Developers forum. You should get more input about this topic here. Thank you. 0 -
sorry and thanks 0 -
use api2_query instead api1_query [PHP] echo $xmlapi->api2_query($account, "Email", "addpop", array($email1, $email_password, $email_quota, $email_domain)); [/PHP] 0
Please sign in to leave a comment.
Comments
3 comments