This function lists the account's mail domains.
Important:
When you disable the Receive Mail role, the system disables this function.
Note:
This function always returns the account's main domain first.
add_www | integer Default: 0 Whether to list
Example: add_www=1 |
include_wildcard | integer Default: 0 Whether to list wildcard addresses.
Example: include_wildcard=1 |
select | string <domain> The name of the domain that the function returns with the Example: select=example.com |
apiversion | integer The version of the API. |
func | string The name of the method called. |
module | string The name of the module called. |
object |
uapi --user=username Email list_mail_domains
{- "apiversion": 3,
- "func": "list_mail_domains",
- "module": "Email",
- "result": {
- "data": [
- {
- "domain": "example.com",
- "select": 1
}
], - "errors": null,
- "messages": null,
- "metadata": {
- "transformed": 1
}, - "status": 1,
- "warnings": null
}
}