Description
This function suspends incoming email for an account. The system will reject incoming email while the account is suspended.
Notes:
- The user can still log in to the email account. To suspend a user's ability to log in to, send mail from, and read their account, use the
Email::suspend_login
function. - Use the
Email::unsuspend_incoming
function to allow the account to receive email.
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 |
The email user's account name. |
A valid email account username. |
user@example.com |
Returns
This function only returns metadata.