This function retrieves an email account's Webmail settings.
Important:
When you disable the Receive Mail role, the system disables this function.
string or string The email account. Note: If you do not specify a value, the function retrieves settings for the cPanel account's default mail account. |
uapi --output=jsonpretty \ --user=username \ Email \ get_webmail_settings
{- "apiversion": 3,
- "func": "get_webmail_settings",
- "module": "Email",
- "result": {
- "data": {
- "domain": "mail.example.com",
- "has_maildir": 1,
- "user": "user@example.com"
}, - "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}