Description
This function adds a domain-level email forwarder.
Warning:
- UAPI (recommended) —
Email::add_domain_forwarder
— This function creates a domain-level forwarder. - cPanel API 2 —
Email::adddomainforward
— This function creates a domain-level email forwarder.
Examples
This function does not return output.
Parameters
Parameter |
Type |
Description |
Possible values |
Example |
domain |
string |
Required The domain for which to forward mail. |
A valid domain on the server. |
example.com |
destdomain |
string |
Required The domain to which to forward mail. |
A valid domain name. |
domain.com |
Returns
This function does not return output.