API Commands
[All Commands]

Command: WorldHosting_Add_Email_Redirect



command WorldHosting_Add_Email_Redirect

Add new e-mail redirect

Input Parameters ($data):

string ssid Token from Login
string domain hosted domain name
string source original e-mail address
string destination target e-mail address

Output Responses:

string status ok | error
array data Details about your request
 

Sample:


<?php
$client 
= new SoapClient(
        
null
        array(
            
"location" => "https://PRODUCTION/cmd.php",
            
"uri" => "http://PRODUCTION/soap"
            
)
        );

$params = array ( 
    
"data" => array (
        
"login" => "demo",
        
"password" => "password",
    )
);

$response $client->__call("Login",$params);
$token $response["data"]["ssid"];

$params = array (
  
'data' => 
  array (
    
'ssid' => $token,
    
'domain' => 'domain.or.af',
    
'source' => 'sales@domain.or.af',
    
'destination' => 'info@domain.or.af',
  ),
);

$response $client->__call("WorldHosting_Add_Email_Redirect",$params);
INPUT: Array ( [data] => Array ( [ssid] => 51aca4e95c12821b56a9045babc943e7 [domain] => domain.or.af [source] => sales@domain.or.af [destination] => info@domain.or.af ) ) OUTPUT: Array ( [status] => ok )

API Manual - version from 2019-07-31 15:54:31