This function rejects outgoing mail for a suspended email account. This function does not disable a user's login credentials or access permissions to their email account.
Notes:
Email::suspend_login
function.Email::unsuspend_outgoing
function.Email::hold_outgoing
function.Important:
When you disable the Send Mail role, the system disables this function.
uapi --output=jsonpretty \ --user=username \ Email \ suspend_outgoing \ email='username@example.com'
{- "apiversion": 3,
- "func": "suspend_outgoing",
- "module": "Email",
- "result": {
- "data": 1,
- "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}