Create mailbox

				
					StructOperationResponse WebHostingMailCreate(string $IDsession, string $id, string email, string $password, int $quota)
				
			

Create a mailbox.

REQUIRED

  • idSession string (32)
    Session ID.
  • id string
    Hosting ID.
  • email string
    Email address.
  • password string
    Password.
  • quota integer
    Storage allocated to this mailbox in MB.

An Object of type StructOperationResponse

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