keepitcoder
New member
- Joined
- Nov 29, 2010
- Messages
- 2
Here is my code that doesn't appear to work. I want to create an email forwarding account via the API. I get a 503 Server Error.
Can anyone please help!?!
Can anyone please help!?!
Code:
<?php
include 'httpsocket.php';
$sock = new HTTPSocket;
$sock->connect('mydomain.com',2222);
$sock->set_login("myadminusername","myadminpassword");
$sock->set_method('POST');
$sock->query('/CMD_EMAIL_FORWARDER',
array(
'action' => 'create',
'domain' => 'mydomain.com',
'user' => 'testaccount',
'email' => '[email protected]'
));
$result = $sock->fetch_body();
echo $result;
?>