This function suspends a user's ability to log in to their email account. This function immediately suspends the user's login credentials and prevents future authenticated connections to the email account.
Notes:
Email::suspend_incoming
function.Email::unsuspend_login
function.Important:
When you disable the Receive Mail role, the system disables this function.
uapi --output=jsonpretty \ --user=username \ Email \ suspend_login \ email='user@example.com'
{- "apiversion": 3,
- "func": "suspend_login",
- "module": "Email",
- "result": {
- "data": null,
- "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}