Send icq message via php
<p>I need to send message to icq from php. I`m using WebIcqPro.</p>

<pre><code>&lt;?php

require_once('WebIcqPro.class.php');

$uin = '******';
$pass = '******';
$to_uin = '******';

$icq = new WebIcqPro();
$icq-&gt;debug = true;
$icq-&gt;setOption('UserAgent', 'miranda');
if ($icq-&gt;connect($uin, $pass)) {
    $icq-&gt;sendMessage($to_uin, 'Hello! This is a test message');
} else {
    die('ICQ connection error: ' . $icq-&gt;error);
}
</code></pre>

<p>This code fails with error: Error: Server close connection</p>

<p>P.S.: Maybe there are other <strong>working</strong> icq classes?</p>