This function restores a user's ability to log in to their email account.
Note:
Email::suspend_login
function.Email::suspend_incoming
function.Important:
When you disable the Receive Mail role, the system disables this function.
uapi --output=jsonpretty \ --user=username \ Email \ unsuspend_login
{- "apiversion": 3,
- "func": "unsuspend_login",
- "module": "Email",
- "result": {
- "data": null,
- "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}