Email Forwarding Account Creation API

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!?!

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;

?>
 
I upload the php scripts, go to the php script in my browser and my browser returns a 503 error... so I assume it's from this php script?
 
Check the error log then to see what its complaining about.
 
Back
Top