Docly Child

Create mail forward

				
					StructOperationResponse WebHostingMailFwdCreate(string $IDsession, string $id, string $source, string $destination)
				
			

Create an email forward.

REQUIRED

  • idSession string (32)
    Session ID.
  • id string
    Hosting ID.
  • source string
    Email address (* for a catch-all).
  • destination string
    List of email addresses (separated by commas).
    Only one email address is accepted when using catchall.

An Object of type StructOperationResponse

<?php 
$clientSOAP = new SoapClient("http://URL.wsdl");
 
try 
{
 
    $idSession = $clientSOAP->sessionOpen("XXXX", "XXXX", "EN"); 
    $clientSOAP->WebHostingMailFwdCreate($idSession, "NW1024", "*@wordpress.netim.com", "admin@netim.com"); 
}
catch(SoapFault $fault) 
{
    echo "Exception : " .$fault->getMessage(). "\n"; 
}
 
if (isset($idSession)) 
{
    $clientSOAP->sessionClose($idSession); 
}