Description
This function lists the cPanel account's mail domains.
Warning:
We strongly recommend that you use the following UAPI function instead of this function:
-
Email::list_mail_domains
— This function lists the account's mail domains.
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 |
skipmain |
Boolean |
Whether to list the cPanel account's main domain. This parameter defaults to 0. |
|
0 |
Returns
Return |
Type |
Description |
Possible values |
Example |
domain |
string |
A mail domain on the cPanel account. |
A valid domain. |
example.com |
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 |