Geraldo V Vieira
New Pleskian
Hi
I'm doing this addon for Roundcube to be able to view/add/delete email alias but I'm a little stuck. The example below has 5 email alias but its only showing the first alias. Does anyone know how I can get it to display all of the aliases?
I'm doing this addon for Roundcube to be able to view/add/delete email alias but I'm a little stuck. The example below has 5 email alias but its only showing the first alias. Does anyone know how I can get it to display all of the aliases?
Code:
$plek_email = <<<EOF
<packet>
<mail>
<get_info>
<filter>
<site-id>$plesk_client_domain</site-id>
</filter>
<mailbox/>
<aliases/>
</get_info>
</mail>
</packet>
EOF;
$plesk_email_response = new SimpleXMLElement($plesk_client->request($plek_email));
$plesk_client_email = [];
foreach($plesk_email_response->mail->get_info->result->mailname as $mailname) {
$plesk_client_email = [
'id' => $mailname->id,
'name' => $mailname->name,
'alias' => $mailname->alias,
];
}
Last edited: