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 Email

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

  1. nick1

    nick1 Member

    Joined:
    May 21, 2006
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    151
    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:
    151
    Anyone please? :eek:
     
  3. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,216
    Likes Received:
    10
    Trophy Points:
    313
    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

  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