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 Email

Discussion in 'E-mail Discussions' started by nick1, Aug 2, 2008.

  1. nick1

    nick1 Member

    Joined:
    May 21, 2006
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    Does anyone know how to create an email for a domain via console without logging to the cPanel account of that domain.

    Any help would be appreciated.

    Thank you,
     
  2. nick1

    nick1 Member

    Joined:
    May 21, 2006
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    Anyone please? :eek:
     
  3. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    One solution is to build a shell script that can do this for you, where that shell script makes use of our XML API to call the API1/API2 function that creates email accounts.

    Here's a link to the documentation on how to call API1 and API2 functions via the XML API:

    http://www.cpanel.net/plugins/xmlapi/cpanel.html

    Here is the API1 function call as used in the X3 theme (/usr/local/cpanel/base/frontend/x3/mail/doaddpopinclude.html):

    Code:
    <cpanel Email="addpop($FORM{'email'},$FORM{'password'},$FORM{'quota'},$FORM{'domain'})">
     
Loading...

Share This Page