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.
uapi --output=jsonpretty \ --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
}
}