Skip to main content

xmlapi: could not find function "addautoresponder" in module email

Comments

2 comments

  • barlow
    OK, to answer my own question. Looking through xmlapi.php revealed that there are query functions for API1 and API2 - I hadn't noticed, duh. So the *working* code looks like this, with an ordered array as per the API documentation and 'api1_query' called: [PHP]$params = array($username, $row['Full Name">, $Subject, $Body, $domain, true, "us-ascii", 4, $startTS, $endTS); $res = json_decode($xmlapi->api1_query($cpanelu, "Email", "addautoresponder", $params), true);[/PHP]
    0
  • cPanelMichael
    Hello :) I am happy to hear you were able to resolve the issue. Thank you for sharing the solution.
    0

Please sign in to leave a comment.