This function returns the count of outbound email messages held in the mail queue for the specified email account.
Important:
When you disable the Receive Mail role, the system disables this function.
uapi --output=jsonpretty \ --user=username \ Email \ get_held_message_count
{- "apiversion": 3,
- "func": "get_held_message_count",
- "module": "Email",
- "result": {
- "data": 0,
- "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}