DomainsEmailChangePassword

Change e-mail account password when type = 'email'. Only available for domains with an email package, for example with the Sitebuilder.

Input

Parameter Value Example value
domain_id ID of domain. Retrieve with DomainsListSingle.
Parameter is required
4312
email_id ID of email account. Retrieve with DomainsEmailList
Parameter is required
info
password New password. Minimum of 5 characters, one lowercase, one uppercase and one number.
Parameter is required.
Ye7aQrum


Output

Parameter Value Example value
success command executed successfully 0 = fout
1 = command executed successfully
command_response_message Error
Only sent when value parameter success = 0
incorrect password


Example

<? require("class_versio_api.php"); unset($command); $command = array( "command" => "DomainsEmailChangePassword", "password" => "das723", "email_id" => "233213" ); $api = new Versio_api(); $versio = $api->api_send( $command ); IF($versio['success']==0) { echo("Error occured. Error code: ".$versio['command_response_code'].". Error message: ".$versio['command_response_message'].""); } else IF($versio['success']==1) { echo("Password succesfully changed."); } ?>