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.

Aut email setup on account creation

Discussion in 'cPanel Developers' started by `joshua`, Jun 20, 2007.

  1. `joshua`

    `joshua` Active Member

    Joined:
    Dec 23, 2004
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    6
    Hello All,

    I have been searching around & found some nice auto email setup scripts, but here is what I am actually trying to get done.

    During Account creation.. we would like have 4 email accounts setup instantly when the account is... we are running CentOS / Cpanel/WHM 11 & using Modernbill as our order form.

    any help or suggestions on how to do this will be very much appreciated.
     
  2. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider
    Send this to whm


    https://WHMIP:2087/xml-api/cpanel?user=[NEW_USER_NAME]&xmlin=<cpanelaction><module>Email</module><func>addpop</func><apiversion>1</apiversion><args>[EMAIL_LOCAL_PART]</args><args>[EMAIL_PASSWORD]</args><args>[EMAIL_QUOTA]</args><args>[EMAIL_DOMAIN]</args></cpanelaction>


    [NEW_USER_NAME] = the user you just created

    [EMAIL_PASSWORD] = :)
    [EMAIL_LOCAL_PART] = the part before the @ sign in the email addy
    [EMAIL_QUOTA]= quota in megabytes
    [EMAIL_DOMAIN] = domain to add the account for (optional) just leave off the last <args></args> if you want it to default to the main domain for the acct
     
  3. ackava

    ackava Registered

    Joined:
    Feb 8, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    This does not work,

    1. Basic Auth is not enabled
    2. This xml api keeps on returning login page as response
    3. If there is a way to write most simple way to make a new custom tag like <?cp ... that should be fine rest all is useless
    4. Also there exists very poor documentation about api, no body says addpop exists in xmlapi on cpanel website
     
Loading...

Share This Page