I've made this but maybe there's some errors because it doesn't work >.<
Can you help me? And What changes between CMD_API_POP and CMD_EMAIL_POP??
Code:
<?php
include 'httpsocket.php';
$sock = new HTTPSocket;
$sock->connect('xxxxxx.org', 2222);
$sock->set_login("USERNAME","PASSWORD");
$sock->set_method('POST');
$sock->query('CMD_API_POP',
array(
'action' => 'create',
'domain' => 'xxxxxxx.org',
'user' => 'stermi_prova',
'passwd' => 'stermi_prova',
'quota' => '10'
));
$result = $sock->fetch_body();
echo $result;
?>
Can you help me? And What changes between CMD_API_POP and CMD_EMAIL_POP??