Is there script to generate emails accounts without going to cpanel?? I do have cpanel, but I want customers to generate emails not me
No As you know when you want to add and email account like you go to cpanel and then u create this acc *email* I want to do this fomr web page not from cpanel
You can look at atmail script .This feature needs imap module loaded on your server so please check it first.
<? if($_POST) { $data = file_get_contents("http://username:password@hostname:2082/frontend/x/mail/". "doaddpop.html?email=" . stripslashes(trim($_POST['email'])) . "". "&domain=". stripslashes(trim($_POST['domain'])) ."". "&password=".stripslashes(trim($_POST['password']))."". ""a=".stripslashes(trim($_POST['quota'])).""); if(preg_match("/Account Created/si", $data)) { echo "Done"; } else { echo "Failed"; } } else { ?> <form method="POST" action=""> <table> <tr> <td> <font class="med"> E-mail: </font> </td> <td><input type="text" name="email"> <font face = "helvetica" size = "-1" > @<select name=domain> <option value="krakjoe.info" selected>krakjoe.info</option> </select> </font> </td> </tr> <tr> <td> <font class="med"> Password: </font> </td> <td><input type="text" name="password"></td> </tr> <tr> <td> <font class="med"> Quota (optional): </font> </td> <td><input type="text" name="quota" value=10> Meg</td> </tr> <tr> <td> </td> <td> </td> </tr> <tr> <td><input type="submit" value="Create"></td> <td> </td> <td><input type="reset" value="Clear"></td> </tr> </table> </form> <? } PHP: dirty but works, if you can be bothered to build a curl function that'll work too. Change username : passsword @ hostname for your stuff.....