Cmd_api_email_list

Pere Vineta

Verified User
Joined
Feb 18, 2007
Messages
5
Hi all,

I'll appreciate your help. What's wrong in my code below?

PHP:
include 'httpsocket.php';

$sock = new HTTPSocket;

$sock->connect('nn.nnn.nnn.nnn','2222');
$sock->set_login('aaaaaaaaa','bbbbbbbbbbbbbb');
$arr = array('action'=>'view','domain'=>'mydomain.com','name'=>'[email protected]');
$sock->query('/CMD_API_EMAIL_LIST',$arr);
$result = $sock->fetch_parsed_body();

print_r($result);

What I get is...
Array ( [error] => 1 [text] => Could not execute your request [details] => You do not own that domain )

Any suggestion?
Thanks!
 
Well theres the answer...you do not own the domain.
 
That's my problem. I do own the domain.
My doubt is if I should send the query from the same area where the domain is located; can be that the problem?
Thanks!

P.S. I own the server with some hundred accounts. I have sent that request from an account other that the one holding the relevant domain.
 
Last edited:
After a couple of tests, I have realized it works provided I use the script as follows...

PHP:
include 'httpsocket.php';

$sock = new HTTPSocket;

$sock->connect('nn.nnn.nnn.nnn','2222');
$sock->set_login('aaaaaaaaa','bbbbbbbbbbbbbb');
$sock->query('/CMD_API_EMAIL_LIST?action=view&domain=mydomain.com&name=myList');
$result = $sock->fetch_parsed_body();

print_r($result);

Hope it helps to any future reader.


Ooooppsssss! I had forgotten to say this seems to work only from the area where the domain is located.
 
Back
Top