Dieter Blancke
New Pleskian
I'm trying to create a mailbox by using the XML api with the following code:
But when I do this, I get the following error (1014):
Parser error: Request is invalid. Error in line 2: Element 'forwarding': This element is not expected. Expected is one of ( antivir, outgoing-messages-mbox-limit, description ).
I tried removing the "forwarding" element afterwards, but then I get the same error for the "alias" element.
The XML Api version isn't filled in, but I noticed it ended up using 1.6.9.1
Removing both the forwarding & alias elements, the mailbox did get created, but I want to be able to update the forwarding & alias settings aswel.
Note: I also tried to use the mail update packets, these gave the same error.
Code:
<?xml version="1.0" encoding="UTF-8"?>
<packet>
<mail>
<create>
<filter>
<site-id>12</site-id>
<mailname>
<name>testing</name>
<mailbox>
<enabled>true</enabled>
</mailbox>
<password>
<value>testing123</value>
</password>
<forwarding>
<enabled>true</enabled>
<address>[email protected]</address>
</forwarding>
<alias>test123</alias>
</mailname>
</filter>
</create>
</mail>
</packet>
But when I do this, I get the following error (1014):
Parser error: Request is invalid. Error in line 2: Element 'forwarding': This element is not expected. Expected is one of ( antivir, outgoing-messages-mbox-limit, description ).
I tried removing the "forwarding" element afterwards, but then I get the same error for the "alias" element.
The XML Api version isn't filled in, but I noticed it ended up using 1.6.9.1
Removing both the forwarding & alias elements, the mailbox did get created, but I want to be able to update the forwarding & alias settings aswel.
Note: I also tried to use the mail update packets, these gave the same error.