change email password with remote interface

Discussion in 'General' started by cusaro, Jan 21, 2011.

  1. cusaro

    cusaro New Member


    how can i change the password from a mailbox with the remote interface?

    i try:

    $params = array('password' => 'test1234');
    $mailuser_id = id of the mailbox
    $client_id = id of the client

    $client->mail_user_update($session_id, $client_id, $mailuser_id , $params);

    and nothing happens, no error, no password change.

    everything else works fine with the remote interface.

    thank you
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Please provide all parameters in the $params array and not just the password. The best way is to use the mail_user_get function to get the current settings, then change the password in the array and pass the $params array back to the update function.
  3. cusaro

    cusaro New Member

    Thanks working fine now.


Share This Page