Description
This function checks whether the system deletes a domain's unroutable mail.
Note:
To modify this setting, use the Email::setdefaultaddress
function.
Warning:
We strongly recommend that you use UAPI instead of cPanel API 2. However, no equivalent UAPI function exists.
Examples
Parameters
Parameter |
Type |
Description |
Possible values |
Example |
domain |
string |
Required The domain. |
A valid domain on the account. |
example.com |
Returns
Return |
Type |
Description |
Possible values |
Example |
status |
Boolean |
Whether the system deletes the domain's unroutable email. |
|
0 |
reason |
string |
A reason for failure. Note: This function only returns a reason value if it failed. |
A string that describes the error. |
This is an error message. |
result |
Boolean |
Whether the function succeeded. |
|
1 |