HostingMailInfo

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


Description

Returns all informations about a mailbox

StructHostingMailInfo hostingMailInfo(string idSession, string mail)  


Perimeter

Applies only to SPAMORA


Parameters

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


Return

An object StructHostingMailInfo


Notes

none

Examples

PHP

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


JAVA

DRSServiceLocator service = new DRSServiceLocator();
String idSession;
StructHostingMailInfo structHostingMailInfo;
 
try
{
DRSPortType port = service.getDRSPort();
idSession = port.login("XXXX", "XXXX", "EN");
 
structHostingMailInfo = port.hostingMailInfo(idSession, "example@netim.com");
      System.out.println(structHostingMailInfo.getMail() +" "+ structHostingMailInfo.getStatus() +" "+ structHostingMailInfo.getLogin());
 
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