Description
This function adds an email account.
Warning:
We strongly recommend that you use the following UAPI function instead of this function:
-
Email::add_pop
— This function creates an email address.
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 createuser@example.com. |
example.com |
|
string |
Required The email account's username. |
A valid email account username. For example, user to createuser@example.com. |
user |
password |
string |
Required The email account's password. |
A secure password. |
12345luggage |
quota |
integer |
The maximum amount of disk space that the new email account may use. This parameter defaults to 250. |
A positive integer that represents the maximum amount of disk space, in Megabytes (MB). Note: To grant unlimited disk space, specify 0. |
500 |
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 |