1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Problems Creating Email Accounts through Plesk RPC API

Discussion in 'Plesk for Windows - 8.x and Older' started by danmason, Oct 12, 2007.

  1. danmason

    danmason Guest

    0
     
    Hi,

    I am trying to create a new email account through the plesk api. I am using the php curl script found in the SDK Documentation with the following xml packet:



    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <packet version="1.4.0.0">

    <mail>

    <create>

    <filter>

    <domain_id>1</domain_id>

    <mailname>

    <name>bfischer</name>

    <cp_access>

    <enabled>true</enabled>

    </cp_access>

    <mailbox>

    <enabled>true</enabled>

    <quota>10485760</quota>

    </mailbox>

    <alias>bob</alias>

    <antivir>true</antivir>

    <permissions>

    <cp_access>true</cp_access>

    <manage_drweb>true</manage_drweb>

    <manage_spamfilter>true</manage_spamfilter>

    </permissions>

    </mailname>

    </filter>

    </create>

    </mail>


    </packet>



    ---- But I am ending up with an error:

    error 1002 Parser failure. Unknown operator: mail *



    any help would be appreciated as I have been stumped by this for days!!!!
     
Loading...