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!

Auto createacct with email done! Response?

Discussion in 'E-mail Discussion' started by Digisource, Dec 3, 2004.

  1. Digisource

    Digisource Member

    Joined:
    Oct 12, 2004
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    151
    Hello All,

    This is my first post here... regarding the automated account creation with WHM!

    I made the following changes to the given perl example to auto create an account, but with email...

    PHP:
    $username $defuser;
    $email $FORM{'email'};
    $password $FORM{'password'};
    $domain $FORM{'domain'};
    $plan $FORM{'plan'};

    $response $whm->whmreq("/scripts/wwwacct?remote=0&nohtml=1&username=$username&contactemail=$email&password=$password&domain=$domain&plan=$plan"); 
    This works perfect, account is created, and contact email is added!
    Then I just use sendmail with my own message to the new client.

    The problem is I don't know what my $response means.
    I'm getting a number code:
    $response = 6

    Any idea on what this means? What other codes can I strip for error tracing?

    Thanks you in advance for your help!
     
  2. Digisource

    Digisource Member

    Joined:
    Oct 12, 2004
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    151
    Does anyone have a suggestion?

    I think this is a good help for some users I've seen asking for auto acct creation with email...

    Regards
     
  3. Digisource

    Digisource Member

    Joined:
    Oct 12, 2004
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    151
    bump

    10 chars
     
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