DomainsEmailDelete

Delete e-mail account or forwarder. Only for domains with an email package,email 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 or forwarder. Retrieve with DomainsEmailList
Parameter is required
423432


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" => "DomainsEmailDelete", "domain_id" => "4312", "email_id" => "32131" ); $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("Email account succesfully deleted."); } ?>