Hi,
I've done a script to create aliases using a PEAR component (HTTP_Request), but it's lacking a lot of features, like: if it worked, list created accounts, created aliases and others.
<?php
include('Request.php');
$edumail = 'eduardo.'.date("Gis"); // just to get something diff.
$params = array( 'method' => 'POST',
'user' => 'mylogin',
'pass' => 'mypass'
);
$a = &new HTTP_Request('http://www.mydomain.com.br:2082/frontend/portugues/mail/doaddfwd.html',$params); // get that info in the form in cpanel
$a->addPostData('email', "$edumail");
$a->addPostData('domain', 'mydomain.com.br');
$a->addPostData('forward', 'eduardoellery@myotherdomain.com');
$a->sendRequest();
echo $a->getResponseBody();
?>
Who wans to exchange some experience?
bye!