Cmd_api_email_catch_all

BMaster

New member
Joined
Oct 2, 2006
Messages
4
Hi!

I'm trying to use the CMD_API_EMAIL_CATCH_ALL api call to setup the catch-all address for a domain. Here's the code I use to try reading the current setting:

PHP:
$da = new HTTPSocket;
$da->connect('<my ip>',2222);
$da->set_login('<mylogin>','<mypass>');
$da->set_method('POST');

$da_array = array("domain" => "<mydomain>");

$da->query('/CMD_API_EMAIL_CATCH_ALL', $da_array);

print $da->get_status_code()."<br>";

$result = $da->fetch_parsed_body();
print_r($result);

This gives me the following result:
Code:
200
Array ( )

I'm very sure there is a catchall address in the account, why can't I see it?

Also, I use the same call to create the catchall address, which works, but I get no result so I don't know if it was succesful or not. I hope anyone can help me with this!
 
Back
Top