I need a Script PHP, to create email and subdomain automatic.
Sorry my bad english, I'm from Brazil.
Example cPanel script I'm using (E-mail ):
<?php
$cpuser = 'xxx'; // Name of user cPanel
$cppass = 'xxx'; // Pass of cPanel.
$cpdomain = 'localhost'; // IP cPanel
$cpskin = 'x3'; // Skin cPanel
$epass = 'xxx'; // pass email
$edomain = 'localhost.com'; // domain email
$equota = 250; // quote email
?>
Create Email Account:
$f = fopen ("http://$cpuser:$cppass@$cpdomain:2082/frontend/$cpskin/mail/doaddpop.html?email=$euser&domain=$edomain&password=$epass"a=$equota", "r");
And Now Example i'm using for create subdomain:
$f = fopen ("http://$cpuser:$cppass@$cpdomain:2082/frontend/$cpskin/subdomain/doadddomain.html?domain=$Subdominio&rootdomain=mydomain&dir=public_html%2F$Subdominio", "r");
Can you help me for this? THANKS SO MUCH!!!!