Description
This function creates a domain-level email forwarder.
Warning:
We strongly recommend that you use the following UAPI function instead of this function:
- 
Email::add_domain_forwarder— This function creates a domain-level forwarder.
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 | 
| domain | string | Required The domain to forward. | A valid domain on the account. | example.com | 
| destdomain | string | Required The destination domain. | A valid domain. | forwardtome.com | 
Returns
| Return | Type | Description | Possible values | Example | 
| domain | string | The forwarded domain. | The domaininput parameter's value. | example.com | 
| destdomain | string | The destination domain. | Thedestdomaininput parameter's value. | forwardtome.com | 
| statusmsg | string | A message of success or failure. | 
 | File updated \u201c/etc/vdomainaliases/example.com\u201d | 
| status | Boolean | Whether the function succeeded. | 
 | 1 | 
| result | Boolean | Whether the function succeeded. | 
 | 1 | 
