HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=25)
-   -   change email password with remote interface (http://www.howtoforge.com/forums/showthread.php?t=51046)

cusaro 21st January 2011 14:15

change email password with remote interface
 
hello,

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
cusaro

till 21st January 2011 14:24

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.

cusaro 23rd January 2011 12:09

Thanks working fine now.

cusaro


All times are GMT +2. The time now is 20:33.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.