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.

Auto createacct with email done! Response?

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

  1. Digisource

    Digisource Member

    Joined:
    Oct 12, 2004
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    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:
    1
    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:
    1
    bump

    10 chars
     
Loading...

Share This Page