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.

Email creation

Discussion in 'cPanel Developers' started by gustavodesouz, Jan 13, 2010.

  1. gustavodesouz

    gustavodesouz Registered

    Joined:
    Jan 4, 2010
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Hi.

    We installed a new version of whm/cpanel.

    But, there is a script that is returning error. It makes creating email accounts.

    See below.

    -------------
    POST /frontend/x3/mail/doaddpop.html?email=teste2&domain=jumboo.com.br&password=123456&quota=50 HTTP/1.0 Host: 74.55.13.82 Authorization: Basic anVtYm9vYzpqZC4tNC41NA==
    -------------

    I debug a application.
    It returns a following message:
    "the limit should be a number or unlimited"

    Please, Can help us?
     
  2. MattDees

    MattDees cPanel Product Owner
    Staff Member

    Joined:
    Apr 29, 2005
    Messages:
    417
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Well, calling pages within cpanel directly like that usually isn't the best of ideas for exactly this reason. Rather we like to suggest that people use the APIs to do something like this.

    f.ex. you'd use Email::addpop (ApiEmail < ApiDocs < TWiki) when called via the xml-api you'd do the following:

    xml-api/cpanel?cpanel_xmlapi_module=Email&cpanel_xmlapi_func=addpop&email=teste2&domain=jumboo.com&password=123456&quota=50

    This will return an XML document rather than an HTML page.

    Please see CallingAPIFunctions < AllDocumentation/AutomationIntegration < TWiki
     
Loading...

Share This Page