Olá Amigo Respondendo Sua Duvida Eu Modifiquei Um Script De Criar E-mail fora Do Cpanel Posso Passar Ele Para Você
Abaixo Segue o Script
<?php
###############################################################
# cPanel Email Account Creator 1.3
# Modificado por HostGator.com.br
###############################################################
# Visit http://www.zubrag.com/scripts/ for updates
###############################################################
# You can pass following parameters in calling URL. They will
# override those specified below.
# user - new email user
# pass - password
# domain - email domain
# quota - email quota, Mb
# Example: cpemail.php?user=newuser&pass=password"a=50
###############################################################
// Antispam image
// Show CAPTCHA - true, do not show - false
// In case you set this to true, you may want to update settings in the antispam.php
// Also when using this feature, fonts must exist on your system.
// By default antispam.php is setup to use arial.ttf
// For details see http://www.zubrag.co...e-generator.php
$antispam = false; // Captcha desativado rand-image com problemas.
// cPanel info
$cpuser = 'SEU USUARIO'; // Nome de úsuario do cPanel
$cppass = 'SUA SENHA'; // Senha do cPanel.
$cpdomain = 'SEU DOMINIO EXEMPLO ORKUT.COM'; // IP ou dominio do cPanel
$cpskin = 'x3'; // Skin do cPanel
// E-mail padrão que vai receber informações das novas contas.
// These will only be used if not passed via URL
$epass = 'SENHA DO E-MAIL'; // senha do e-mail
$edomain = 'DOMINIO DO E-MAIL'; // dominio do e-mail, o mesmo que o cPanel.
$equota = 100; // tamanho em MB OBS:0 O E-MAIL FICA ILIMITADO
###############################################################
# END OF SETTINGS
###############################################################
function getVar($name, $def = '') {
if (isset($_REQUEST[$name]))
return $_REQUEST[$name];
else
return $def;
}
// check if overrides passed
$euser = getVar('user', '');
$epass = getVar('pass', $epass);
$edomain = getVar('domain', $edomain);
$equota = getVar('quota', $equota);
$msg = '';
if (!empty($euser))
while(true) {
if ($antispam) {
@session_start(); // Inicia a sessão caso ela não tenha iniciado.
if ($_SESSION['AntiSpamImage'] != $_REQUEST['anti_spam_code']) {
// Seta uma string de anti-spam
$_SESSION['AntiSpamImage'] = rand(1,9999999);
// Avisa sobre os usuarios sobre a mensagem de anti-spam.
$msg = '<h2>Mensagem Anti-Spam Incorreta</h2>';
break;
}
else {
// Seta ao Anti-Spam alguma numero randomico
$_SESSION['AntiSpamImage'] = rand(1,9999999);
}
}
// Cria a conta de e-mail
$f = fopen ("http://$cpuser:$cppass@$cpdomain:2082/frontend/$cpskin/mail/doaddpop.html?email=$euser&domain=$edomain&password=$epass"a=$equota", "r");
if (!$f) {
$msg = 'Não foi possivel criar a conta de e-mail. Possivel razões: Funcionaliade "fopen" não está habilitado no servidor, PHP esta rodando com safe_mode ativo';
break;
}
$msg = "<h2>Conta de e-mail {$euser}@{$edomain} criada</h2>";
// Checa o resultado
while (!feof ($f)) {
$line = fgets ($f, 1024);
if (ereg ("already exists", $line, $out)) {
$msg = "<h2>Conta de e-mail {$euser}@{$edomain} já existe.</h2>";
break;
}
}
@fclose($f);
break;
}
?>
</p>
<p align="center"> </p>
<div class="box_login">
<form name="frmEmail" method="post">
<div align="center">
<table width="684" height="131" border="0" align="left">
<tr>
<td height="47"> </td>
<td align="center"><div align="left"></div></td>
</tr>
<tr>
<td width="249" height="24"><p align="center" class="style2"> </p></td>
<td width="425"><div align="left">Nome:
<input name="user" size="20" value="<?php echo htmlentities($euser); ?>" />
</div></td>
</tr>
<tr>
<td height="24"><div align="center"></div></td>
<td><div align="left">Senha:
<input name="pass" size="20" type="password" />
</div></td>
</tr>
<tr>
<td height="26" colspan="2" align="center"><div align="left">
<p align="center">
<input name="submit" type="submit" value="Criar" />
</p>
</div></td>
</tr>
<?php if ($antispam) { ?>
<?php } ?>
</table>
</div>
</form>
</div>
<table id="msg" width="508" border="0" align="center" cellpadding="0" cellspacing="0">
<tr></tr>
</table>
<p align="center"> <?php echo '<div style="color:red">'.$msg.'</div>'; ?></p>