Delete domain mail alias

				
					StructOperationResponse WebHostingDomainMailUpdate(string $IDsession, string $id, string $action, array $params)
				
			

Delete an alias from a domain mail.

REQUIRED

  • idSession string (32)
    Session ID.
  • id string
    Hosting ID.
  • action string
    Set to “RemoveAlias”.
  • params array
    {“alias”: Alias to be removed,}

An Object of type StructOperationResponse

<?php 
$clientSOAP = new SoapClient("http://URL.wsdl");
 
try 
{
    $params = array("alias" => "alias.netim.com",
        );
 
    $idSession = $clientSOAP->sessionOpen("XX000", "xxxxxxxx"); 
    $clientSOAP->WebHostingDomainMailUpdate($idSession, "NW1024", "RemoveAlias", $params)); 
}
catch(SoapFault $fault) 
{
    echo "Exception : " .$fault->getMessage(). "\n"; 
}
 
if (isset($idSession)) 
{
    $clientSOAP->sessionClose($idSession); 
}