Description
This function adds an MX entry to a domain's DNS zone file.
Warning:
- UAPI (recommended) — Email::add_mx— This function creates a Mail Exchanger (MX) record.
- cPanel API 2 — Email::addmx— This function creates an MX record.
Examples
Parameters
| Parameter | Type | Description | Possible values | Example | 
| 
 | string | Required The domain name. | A valid domain on the server. | 
 | 
| 
 | string | Required The new mail exchanger's name. |  A string in  | 
 | 
| 
 | integer | Required The mail exchanger's priority. | An integer value. Note: Generally, server owners set a priority value that is divisible by five. | 
 | 
Returns
This function does not return output.
