Hi,
I'm having trouble on how to create an email account using the Plesk API. The XML sent to the server is :
According to the documentation, this should work, but I get this error instead : Parser error: Request is invalid. Error in line 10: Element 'password': This element is not expected.
I guess I could create the account without any password, then add it via the update action, but this requires more treatment in case of failure (if the password is not strong enough, adding it will fail and I'll have to remove the created address).
Any help will be appreciated. Thanks.
I'm having trouble on how to create an email account using the Plesk API. The XML sent to the server is :
<?xml version="1.0" encoding="UTF-8"?>
<packet version="1.6.3.5">
<mail>
<create>
<filter>
<site-id>8</site-id>
<mailname>
<name>maxime2</name>
<antivir>inout</antivir>
<password>
<value>test</value>
<type>plain</type>
</password>
</mailname>
</filter>
</create>
</mail>
</packet>
According to the documentation, this should work, but I get this error instead : Parser error: Request is invalid. Error in line 10: Element 'password': This element is not expected.
I guess I could create the account without any password, then add it via the update action, but this requires more treatment in case of failure (if the password is not strong enough, adding it will fail and I'll have to remove the created address).
Any help will be appreciated. Thanks.