HostingMailFwdInfo

From NETIM
Jump to: navigation, search
Release Runtime
API >= 1.4 Synchronous


Description

Returns all informations about an email address forward

structHostingMailFwdInfo hostingMailFwdInfo(string idSession, string mail)  


Perimeter

Applies only to SPAMORA


Parameters

Format Variable Description Notes
string (32) idSession Session ID
string (255) email Forward to be queried


Return

An object structHostingMailFwdInfo


Notes

None

Examples

PHP

<?php
$clientSOAP = new SoapClient("http://URL.wsdl");
 
try
{
      $idSession = $clientSOAP->login("XXXX", "XXXX", "EN");
      $structHostingMailFwdInfo = $clientSOAP->hostingMailFwdInfo($idSession, "example@netim.com");
 
      print_r($structHostingMailFwdInfo);
}
catch(SoapFault $fault)
{
      echo "Exception : " .$fault->getMessage(). "\n";
}
 
if (isset($idSession))
{
      $clientSOAP->logout($idSession);
}
?>


JAVA

DRSServiceLocator service = new DRSServiceLocator();
String idSession;
StructHostingMailFwdInfo structHostingMailFwdInfo;
 
try
{
DRSPortType port = service.getDRSPort();
idSession = port.login("XXXX", "XXXX", "EN");
 
structHostingMailFwdInfo = port.hostingMailFwdInfo(idSession, "example@netim.com");
      System.out.println(structHostingMailFwdInfo.getMail() +" "+ structHostingMailFwdInfo.getMailFwd());
 
port.logout(idSession);
}
catch (RemoteException re)
{
      System.out.println(re.getMessage());
}
catch (ServiceException se)
{
      se.printStackTrace();
}
Personal tools
Namespaces

Variants
Actions
Your account
Domain names
Contact Us
Web Hosting
SSL Certificate
Email Hosting
Website Builder
Resellers
Affiliates
Miscellaneous