$soap_location,
'uri' => $soap_uri));
try {
if($session_id = $client->login($username,$password)) {
echo 'Zalogowany. Sesja:'.$session_id.'
';
}
$params = array( 'server_id' => 1,
'email' => 'franek'.date("Hmi").'@dsad.dsa',
'password' => 'franek',
'quota' => '10',
'maildir' => '/var/vmail/dsad.dsa/franek',
'homedir' => '/var/vmail', 'uid' => '5000',
'gid' => '5000',
'postfix' => 'y',
'disableimap' => '0',
'disablepop3' => '0');
$client_id = 0;
$mailuser_id = 3;
$domain__id = $client->mail_user_update($session_id, $client_id, $mailuser_id , $params);
if($client->logout($session_id)) {
echo 'Wylogowany.
';
}
} catch (SoapFault $e) {
die('SOAP Blad: '.$e->getMessage());
}
?>