Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Dec 2004
    Posts
    42

    Default Aut email setup on account creation

    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.
    ------
    Best Regards,
    Joshua

  2. #2
    cPanel Staff cpanelnick's Avatar
    Join Date
    Feb 2003
    Location
    Houston, TX
    Posts
    4,597

    Default

    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. #3
    Registered User
    Join Date
    Feb 2008
    Posts
    3

    Default

    Quote Originally Posted by cpanelnick View Post
    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
    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

Similar Threads & Tags
Similar threads

  1. Creation/Setup of Email Default in postwwwacct
    By Tyler.S in forum cPanel Developers
    Replies: 1
    Last Post: 09-29-2010, 08:07 AM
  2. Account Creation Status: Failed(please setup a nameserver)
    By Mazer in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 01-19-2010, 10:28 AM
  3. Account Creation Status: failed (Sorry, that domain is already setup (remove it from
    By crazyaboutlinux in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 05-09-2009, 01:13 AM
  4. XML-API, Setup reseller + Account Creation Limits
    By jprl12 in forum cPanel Developers
    Replies: 1
    Last Post: 03-03-2008, 10:42 AM
  5. Replies: 1
    Last Post: 03-19-2006, 11:10 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube