Description
This function adds an email account.
Warning:
- UAPI (recommended) —
Email::add_pop
— This function creates an email address. - cPanel API 2 —
Email::addpop
— This function adds an email account.
Examples
Parameters
Parameter |
Type |
Description |
Possible values |
Example |
|
string |
Required The email account name. For example, user if the email address will be user@example.com. |
A valid email account name. |
user |
password |
string |
Required The email account password. |
A secure password. |
12345luggage |
quota |
integer |
Required The maximum amount of disk space that the new email account may use. |
A positive integer. Note: To grant the account unlimited disk space, specify 0 for this parameter. |
500 |
domain |
string |
Required The email account's domain. For example, example.com if the email address is user@example.com. |
The domain that corresponds to the email account. |
example.com |
Returns
This function returns the new email address, in email@domain.tld
format.