Description
This function lists the cPanel account's email addresses with mainacct.jpg
image links.
Warning:
We strongly recommend that you use UAPI instead of cPanel API 2. However, no equivalent UAPI function exists.
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. The system matches the PCRE to both the email address's username and domain. |
A valid PCRE. |
user |
Returns
Return |
Type |
Description |
Possible values |
Example |
|
string |
The email address, or the main account username. |
A valid email address, or the username for the main account. |
user@example.com |
login |
string |
The email address or the string Main Account, and an HTML link to themainacct.jpgimage. |
|
|
suspended_incoming |
boolean |
Whether the email account's incoming email is suspended. Note: cPanel & WHM introduced this return in version 54. |
|
0 |
suspended_login |
boolean |
Whether the user's ability to log in to, send mail from, and read their email account is suspended. Note: cPanel & WHM introduced this return in version 54. |
|
0 |
reason |
string |
A reason for failure. Note: This function only returns a reasonvalue if there is an error. |
A string that describes the error. |
This is an error message. |
result |
boolean |
Whether the function succeeded. |
|
1 |