Hi,
have done a script that create and delete a email account with that :
delete
$xmlapi = new xmlapi($ip);
$xmlapi->set_port($port);
$xmlapi->password_auth($account, $passwd);
$email_account = "teste2";
$args = array(
'domain'=>$email_domain,
'email'=>$email_account ) ;
$xmlapi->api2_query($account, "Email", "delpop", $args);
__________________________________________________________
create
$xmlapi = new xmlapi($ip);
$xmlapi->set_port($port);
$xmlapi->password_auth($account, $passwd);
$call = array(domain=>$email_domain, email=>$email_user, password=>$email_pass, quota=>$email_quota);
$xmlapi->set_debug(1);
$result = $xmlapi->api2_query($account, "Email", "addpop", $call ); // making call to cpanel api
______________________________________________________
Now I want to make the same to list email accounts and to see and change quota off a email account.
Could you help me , please??
Thanks
Paulo



LinkBack URL
About LinkBacks
Reply With Quote




