Skip to main content

Create new email account using php

Comments

5 comments

  • Spirogg
    maybe this will help you
    0
  • spiritBreaker
    maybe this will help you
    0
  • cPanelLauren
    Glad you were able to get this resolved! Thanks for letting us know.
    0
  • marih
    ah, ran into this article. tried the xmlapi.php, it was not working. on second try, saw that i need to get response as json to get it to work nice. the email is created as i need to now. thank you again :)

    Please share the solution or the steps you used
    0
  • spiritBreaker
    Please share the solution or the steps you used

    [CODE=php] $xmlapi = new xmlapi($ip); $xmlapi->set_port($port); $xmlapi->password_auth($account, $passwd); $xmlapi->set_output('json');
    where $ip, $port, $account and $password are simple string variables containing your settings. $xmlapi->set_output('json'); is what i added
    0

Please sign in to leave a comment.