Location: PHPKode > scripts > cPanel Tools > cpanel-tools/example.php
//  Here is a quick example of how to use the class, read the top of the class file for
//  the complete list of functions.  Some functions do not return errors (due to cpanel not returning errors)
//  Bear in mind that some functions may take awhile for cpanel to execute (like add addon domain), so it may
//  not be the best idea to wait for a response.

	$cpanel = new cPanelTools('username','password','example.com');
	// create email address
	$errors = $cpanel->emailCreate('hide@address.com','mypass');
		echo 'Email Address was Created!';
		echo 'There was an error<br>';
	// delete email (without bothering to collect the errors)
	// Create subdomain
Return current item: cPanel Tools