dagdatech Posted May 25, 2010 Share Posted May 25, 2010 So Im working on a quick script to auto create a sub account, corresponding domain, and admin login credentials in Rackspace's email reselling API. Here's what I have so far (tested, and works when called directly): <?php $client = new SoapClient('https://admin.webmail.us/excedentsoap/excedentsoap.wsdl'); $res = $client->__soapCall('AddDomain', array('ResellerUsername' => 'USERNAME', 'ResellerPassword' => 'PASSWORD', 'HostName' => 'domain.com', // primary domain 'Aliases' => '', // Domain aliases only 'MaxMbxSize' => 10240, // size in megabytes 'MaxNumUsers' => 10, // 0 for unlimited email accounts 'AllowWirelessAccess' => 1, // Set 0 to dissallow or 1 to allow comments 'AdminUsername' => 'username', // 1st admin login name 'AdminPassword' => 'password', // 1st admin password 'MxRecordArray' => $test)); print_r($res); ?> My question is this: I'd like to have the above code run when an order is accepted through WHMCS for email services... do I create an action hook for this or is this something that needs a module written for? 0 Quote Link to comment Share on other sites More sharing options...
dagdatech Posted May 27, 2010 Author Share Posted May 27, 2010 bummer, nobody has any suggestions? 0 Quote Link to comment Share on other sites More sharing options...
rdavis Posted May 28, 2010 Share Posted May 28, 2010 Try Anand, he is a good coder. The only email I have is sales@logicsurge.com. It might cost you $20 or less if he's not in a giving mood. Technut 0 Quote Link to comment Share on other sites More sharing options...
logicsurge Posted June 1, 2010 Share Posted June 1, 2010 You would need a module for this. Please email me at the email Robert mentioned if you need some help. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.