A
AronD
Guest
Plesk version: 9.5.2
Linux: CentOS 5
Problem:
Im using the Plesk API to setup clients, domains and email addresses. On some ocassions I need to enable Horde webmail for a domain which works fine when selected manually. The problem comes about when Im trying to select the appropriate webmail program for a particular domain using the API.
screenshot below shows the options Ive given for selecting webmail manually through Plesk. All I want to do is change the Webmail drop down from 'None' to 'Horde 4.3.6' using the API.
However according to the API documentation http://download1.parallels.com/Plesk/PPP9/Doc/en-US/plesk-9.3-api-rpc/index.htm?fileName=34479.htm The webmail option is a boolean of either true or false.
Does anyone know how I can select the Horde webmail ?
Here is the packet im sending to the API:
<?php
$packet = <<<EOP
<?xml version="1.0" encoding="UTF-8"?>
<packet version="1.5.2.1">
<mail>
<set_prefs>
<filter>
<domain_id>$domain_id</domain_id>
</filter>
<prefs>
<nonexistent-user>
<reject/>
</nonexistent-user>
<webmail>true</webmail>
<spam-protect-sign>false</spam-protect-sign>
</prefs>
</set_prefs>
</mail>
</packet>
EOP;
?>
Linux: CentOS 5
Problem:
Im using the Plesk API to setup clients, domains and email addresses. On some ocassions I need to enable Horde webmail for a domain which works fine when selected manually. The problem comes about when Im trying to select the appropriate webmail program for a particular domain using the API.
screenshot below shows the options Ive given for selecting webmail manually through Plesk. All I want to do is change the Webmail drop down from 'None' to 'Horde 4.3.6' using the API.
However according to the API documentation http://download1.parallels.com/Plesk/PPP9/Doc/en-US/plesk-9.3-api-rpc/index.htm?fileName=34479.htm The webmail option is a boolean of either true or false.
Does anyone know how I can select the Horde webmail ?
Here is the packet im sending to the API:
<?php
$packet = <<<EOP
<?xml version="1.0" encoding="UTF-8"?>
<packet version="1.5.2.1">
<mail>
<set_prefs>
<filter>
<domain_id>$domain_id</domain_id>
</filter>
<prefs>
<nonexistent-user>
<reject/>
</nonexistent-user>
<webmail>true</webmail>
<spam-protect-sign>false</spam-protect-sign>
</prefs>
</set_prefs>
</mail>
</packet>
EOP;
?>