Skip to main content

Change "editquota" email does not work ($xmlapi->api2_query) -- HELP

Comments

4 comments

  • vanessa
    From first glance, you're using an api2 call, when in fact this is an api1 function: [url=http://docs.cpanel.net/twiki/bin/view/ApiDocs/Api1/ApiEmail#Email::editquota]Email Module Documentation Try using an API1 call instead.
    0
  • conseld
    Hello thanks for the reply, but I have done with this API1, and that? as shown below. I tried and I still error. $qt = array(domain=>'domain.com', email=>'doteste1@domain.com', quota=>'12'); $result = $xmlapi->api1_query($userLogin, "Email", "editquota", $qt); print_r($result); // XML return below Email editquota event internal 1 <br /><font color="#FF0000">Account does not exist.</font> 1 Account does not exist.
    0
  • conseld
    [quote="vanessa, post: 1669151">From first glance, you're using an api2 call, when in fact this is an api1 function: [url=http://docs.cpanel.net/twiki/bin/view/ApiDocs/Api1/ApiEmail#Email::editquota]Email Module Documentation Try using an API1 call instead.
    Thanks for the response, since the ultilizei API1 and keeps giving error, what is missing? Could you help me?
    0
  • cPanelMichael
    Hello :) Upon reviewing your script, I noticed the following: $qt = array(domain=>'domain.com', email=>'doteste1@domain.com', quota=>'12');
    The entry for email should not include the @domain.com suffix. Instead, in your example, it should only use "doteste1". Thank you.
    0

Please sign in to leave a comment.