Description
This function modifies an email account's password.
Warning:
We strongly recommend that you use the following UAPI function instead of this function:
-
Email::passwd_pop
— This function changes an email account's password.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
Parameter |
Type |
Description |
Possible values |
Example |
domain |
string |
Required The email account's domain. |
A valid domain on the cPanel account. For example, example.com to modify the password for user@example.com. |
example.com |
|
string |
Required The email account name. |
A valid email account name. For example, user to modify the password foruser@example.com |
user |
password |
string |
Required The new email account password. |
A secure password. |
12345luggage |
Returns
Return |
Type |
Description |
Possible values |
Example |
reason |
string |
A reason for failure. Note: This function only returns a reasonvalue if it failed. |
A string that describes the error. |
This is an error message. |
result |
boolean |
Whether the function succeeded. |
|
1 |