Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Create DOMAIN Forwarders With API V.2

Discussion in 'cPanel Developers' started by rigiddesign, Feb 16, 2014.

  1. rigiddesign

    rigiddesign Registered

    Joined:
    Mar 14, 2013
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    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 anything@test.com TO anything@test2.com

    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
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,758
    Likes Received:
    1,886
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice