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!

cPanel Accounting - contact email not added

Discussion in 'E-mail Discussion' started by kgp43, Sep 29, 2004.

  1. kgp43

    kgp43 Active Member

    Joined:
    Aug 25, 2004
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    156
    Hi,

    I have setup the cPanel Accounting php script, and it is working okay. I just dont know how to add the users Contact Email into WHM.

    This is my current code:

    <?php
    require '/usr/local/cpanel/Cpanel/Accounting.php.inc';

    //System variables
    $host = "localhost";
    $user = "root";
    $accesshash = '<KEY HERE>';
    //User variables
    $acctdomain = "domaintest.com";
    $acctuser = "testdom";
    $acctpass = "domain123";
    $acctplan = "5";

    $accts = createacct($host,$user,$accesshash,$usessl,$acctdomain,$acctuser,$acctpass,$acctplan);
    print_r($accts);
    ?>
     
  2. TSDarinM

    TSDarinM Registered
    PartnerNOC

    Joined:
    May 10, 2004
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    151
    I am looking for a way to add the contact e-mail also. These scripts are pretty weak. They should have taken some time and made them useable. I don't think there is a way to add the e-mail addy and that is pretty pertinent.
     
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