Description
This function lists the cPanel account's email accounts.
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 |
regex |
string |
A Perl Compatible Regular Expression (PCRE) that filters the results. |
A valid PCRE. |
user |
no_validate |
Boolean |
Whether to skip the email database's validation check. This parameter defaults to 0. |
|
1 |
skip_main |
Boolean |
Whether to exclude the cPanel account's main account from the results. This parameter defaults to 0. |
|
0 |
Returns
Return |
Type |
Description |
Possible values |
Example |
|
array of hashes |
A hash of data for an email address on the cPanel account. |
Each hash includes the email andlogin returns. |
|
|
string |
An email address. The function includes this value in the unnamed hash for each email address. |
|
user@example.com |
login |
string |
The email account login. The function includes this value in the unnamed hash for each email address. |
|
user@example.com |