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!

Email::addpop via http post

Discussion in 'cPanel Developers' started by Andrew Mak, Aug 29, 2012.

  1. Andrew Mak

    Andrew Mak Registered

    Joined:
    Aug 29, 2012
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    Hi, i am not using PHP to connect to cpanel API, i am using http POST or GET

    i have successfully created hosting account remotely using the post parameter:

    screen10040.jpg

    screen10041.jpg

    but when it come to create pop email, the function name will look like this, Email::addpop

    may i know how to apply this function to my program?

    is it something like this? and what is the parameter? thanks
    http://66.23.228.39:2086/xml-api/Email::addpop

    Andrew
     
    #1 Andrew Mak, Aug 29, 2012
    Last edited: Aug 29, 2012
  2. Andrew Mak

    Andrew Mak Registered

    Joined:
    Aug 29, 2012
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
  3. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,480
    Likes Received:
    29
    Trophy Points:
    158
    cPanel Access Level:
    DataCenter Provider
  4. Andrew Mak

    Andrew Mak Registered

    Joined:
    Aug 29, 2012
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    Hi, thanks for the information, i am now able to create hosting account remotely using the url below:

    http://[B]66.23.228.39[/B]:2086/xml-api/cpanel?user=andrew6&cpanel_xmlapi_module=Email&cpanel_xmlapi_func=addpop&cpanel_xmlapi_version=2&domain=dailow3.com&email=test&password=abc123

    66.23.228.39 (change to your IP)
    user= (change to your cpanel account username)
    domain= (the domain you want to create the email)
    email= (the email username before "@")
    password= (your email password)
     
  5. Andrew Mak

    Andrew Mak Registered

    Joined:
    Aug 29, 2012
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    example of Email::addforward

    the url:
    http://66.23.228.39:2086/xml-api/cpanel?user=andrew6&cpanel_xmlapi_module=Email&cpanel_xmlapi_func=addforward&cpanel_xmlapi_version=2&domain=dailow3.com&email=test&fwdopt=fwd&fwdemail=admin@yahoo.com

    result:
    <cpanelresult><apiversion>2</apiversion><data><domain>dailow3.com</domain><email>test@dailow3.com</email><forward>admin@yahoo.com</forward></data><event><result>1</result></event><func>addforward</func><module>Email</module></cpanelresult>

    hope this help.
     
    #5 Andrew Mak, Aug 29, 2012
    Last edited: Aug 29, 2012
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