Auto createacct with email done! Response?

Digisource

Member
Oct 12, 2004
5
0
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!
 

Digisource

Member
Oct 12, 2004
5
0
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