Docly Child

Create mail forward

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

Create an email forward.


  • 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

$clientSOAP = new SoapClient("http://URL.wsdl");
    $idSession = $clientSOAP->sessionOpen("XXXX", "XXXX", "EN"); 
    $clientSOAP->WebHostingMailFwdCreate($idSession, "NW1024", "*", "[email protected]"); 
catch(SoapFault $fault) 
    echo "Exception : " .$fault->getMessage(). "\n"; 
if (isset($idSession))