$soap_location,
'uri' => $soap_uri));
try {
if($session_id = $client->login($username,$password)) {
echo 'Zalogowany. Sesja:'.$session_id.'
';
}
$params = array( 'server_id' => 1,
'type' => 'pop3',
'source_server' => 'replikant.eu',
'source_username' => 'alias',
'source_password' => 'qazxsw',
'source_delete' => 'y',
'destination' => 'ktos@replikant.eu',
'active' => 'y');
$client_id = 0;
$domain_id = $client->mail_fetchmail_add($session_id,$client_id,$params,$domain_id);
if($client->logout($session_id)) {
echo 'Wylogowany.
';
}
} catch (SoapFault $e) {
die('SOAP Blad: '.$e->getMessage());
}
?>