Set domain mail fqdn

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

Change the FQDN of a domain mail.

REQUIRED

  • idSession string (32)
    Session ID.
  • id string
    Hosting ID.
  • action string
    Set to “SetFQDN”.
  • params array
    {“fqdn”: Current fqdn, “newFqdn”: new fqdn}

An Object of type StructOperationResponse

<?php 
$clientSOAP = new SoapClient("http://URL.wsdl");
 
try 
{
    $params = array("fqdn" => "mail.netim.com",
         "newFqdn" => "mail.wordpress.netim.com",
        );
 
    $idSession = $clientSOAP->sessionOpen("XXXX", "XXXX", "EN"); 
    $clientSOAP->WebHostingDomainMailUpdate($idSession, "NW1024", "SetFQDN", $params)); 
}
catch(SoapFault $fault) 
{
    echo "Exception : " .$fault->getMessage(). "\n"; 
}
 
if (isset($idSession)) 
{
    $clientSOAP->sessionClose($idSession); 
}