The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page