Description
This function suspends a user's ability to log in to, send mail from, and read their mail account.
Notes:
- The system will drop the user's email connection immediately.
- The account will still receive email. To suspend incoming email for an account, use the
Email::suspend_incoming
function. - Use the
Email::unsuspend_login
function to remove the login suspension.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
Parameter |
Type |
Description |
Possible values |
Example |
|
string |
Required The email user's account name. |
A valid email account username. |
user@example.com |
Returns
This function only returns metadata.