Description
This function sets a mail exchanger's role.
Note:
This function only affects the mail exchanger's configuration in cPanel. You must also modify the mail exchanger's DNS entry.
Warning:
- UAPI (recommended) —
Email::set_always_accept
— This function sets the Mail Exchanger (MX) type. - cPanel API 2 —
Email::setalwaysaccept
— This function modifies a mail exchanger's type.
Examples
Parameters
Parameter |
Type |
Description |
Possible values |
Example |
domain |
string |
Required The domain name. |
A valid domain on the server. |
example.com |
mxcheck |
string |
Required The mail exchanger's role. |
|
local |
Returns
This function does not return output.