This script is not changing the email password so what is wrong here ?
PHP Code:
include("xmlapi.php");
$ip = 'yourdomain.com';
$root_pass = 'cpanelpass';
$account = "cpaneluser";
$email_account = "youremail";
$email_domain = "yourdomain.com";
$new_pass = "newpass";
$xmlapi = new xmlapi($ip);
$xmlapi->set_port('2083');
$xmlapi->password_auth($account,$root_pass);
$args = array(
'domain'=>$email_domain,
'email'=>$email_account,
'password'=>$new_pass
);
$result = $xmlapi->api2_query($account, "Email", "passwdpop ", $args);
$xml_result = new SimpleXMLElement($result);
print $xml_result;
I want to display the result of $xml_result
I get an error for that so script change the password but I need to display the result of execute this script