This function lists the cPanel account's email accounts.
Important:
When you disable the Receive Mail role, the system disables this function.
uapi --output=jsonpretty \ --user=username \ Email \ list_pops
{- "apiversion": 3,
- "func": "list_pops",
- "module": "Email",
- "result": {
- "data": [
- {
- "email": "user@example.com",
- "login": "user@example.com",
- "suspended_incoming": 0,
- "suspended_login": 0
}
], - "errors": null,
- "messages": null,
- "metadata": {
- "transformed": 1
}, - "status": 1,
- "warnings": null
}
}