Update Mail User By It's email Not Alias Id Using Api

Discussion in 'Developers' Forum' started by synxmax, Nov 27, 2013.

  1. synxmax

    synxmax New Member

    Hi There

    I'm wondering is there any standard way ( api standards ) , to update mail user using his email address not by alias_id ?

    for example i want to change user password inside ispconfig db via a custom build mail client, but all i have is current user email address , how can i select that user and replace his password ?

    Thanks in advance
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes, thats possible. Example:

    $mail_user_record = $client->mail_user_get($session_id, array('email' => [email protected]'));
    $mail_user_record['name'] = 'Tom';
    $client->mail_user_update($session_id, $client_id, $mail_user_record['mailuser_id'], $mail_user_record);
  3. synxmax

    synxmax New Member


    Thanks Dude
    Works like a charm :)

Share This Page