Create e-mail addresses for cPanel accounts
This is a simple class that can be used create e-mail addresses for domains hosted using a cPanel account.
It extends a script originally made available in the zubrag.com Web site.
The class accesses a cPanel Web server and sends a command to create an e-mail account with a given address, password and quota.
The class retrieves and process the cPanel server response to determine whether the account creation was successful or it could not be created when the account already exists.
To use this script in your website you need to change some values in cpmail_example.php