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.

cPanel Accounting - contact email not added

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

  1. kgp43

    kgp43 Active Member

    Joined:
    Aug 25, 2004
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    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:
    1
    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