Create DOMAIN Forwarders With API V.2

rigiddesign

Registered
Mar 14, 2013
4
0
1
cPanel Access Level
Root Administrator
Hi all and thanks in advance :)

I have easiuly managed to add email forwarders using Email::addforward, however I cannot see anywhere how you can setup domain forwarders, I.E forward [email protected] TO [email protected]

Can somebody point me in the right direction?

I assumed I would be able ot use the same method of Email::addforward but couldn't see anything in the documentation.

Thanks,

Tim
 

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,911
2,233
363
cPanel Access Level
DataCenter Provider
Twitter
Hello :)

You can utilize the following function:

Email::adddomainforward

Code:
API Version: 2

Description: Create a domain-level email forwarder.

Parameters:
domain (string) - The domain for which email will be forwarded.
destdomain (string) - The domain that will receive forwarded email.
We have an internal case open (#88689) to document this function.

Thank you.