• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Problems Creating Email Accounts through Plesk RPC API

D

danmason

Guest
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!!!!
 
Back
Top