Using xmlapi to manage email accounts has been going well until I started working with 'addautoresponder', which is coming back with the error "could not find function 'addautoresponder' in module 'email".
Is there something I should know? Is there some new function? Am I accessing API 1 incorrectly? I read somewhere that API 1 requires an ordered param array rather than a hashed param array, but that's from some years ago, right?
The code looks like this:
Any suggestions or guidance would be appreciated.
By the way, the people who developed xmlapi interface for CPANEL are heros!
Is there something I should know? Is there some new function? Am I accessing API 1 incorrectly? I read somewhere that API 1 requires an ordered param array rather than a hashed param array, but that's from some years ago, right?
The code looks like this:
PHP:
$params = array('domain'=>$domain,
'email'=>$row['email'],
'from'=>$row['Full Name'],
'subject'=>$Subject,
'body'=>$Body,
'html'=>true,
'interval'=>4,
'start'=>$startTS,
'stop'=>$endTS);
$res = json_decode($xmlapi->api2_query($cpanelu, "Email", "addautoresponder", $params), true);
By the way, the people who developed xmlapi interface for CPANEL are heros!