Make sure your form's input names match the email, password and quota variables on this line.

Replace the USER_THEME with bluelagoon, default, iconic or whatever the theme for the account is and leave all the rest in the script as is.

==========
header("Location: index.php"); /* Redirect browser */
exit; /* Make sure that code below does
not get executed when we redirect. */

make the index.php file whereever you want to redirect too.

===============
For thoes of your that used Jim Carters neomail create script.

There is an error in that after you create the email account the user will not beable to login to neomail the reason for this is the cpanel password and user name conflict with the form that is made with it to fix it do this.

I have been trying to utilise the signup script that is used on http://www.warwithboredom.com which allows users to signup for email acounts via a html form, however i cant seem to get the file to work.

If posts the username and password to the sql but isnt setting up the pop account.

The program consists of two files and a sql

the files are: config.php

<?
//before this will work you will need to make a database and then run signup.sql in phpmyadmin
//if you need any help email me at support@warwithboredom.com
//also once you have made the table you Must add any email addresses that you already have
//to the data base manually otherwise this script can overwrite mailboxes

$host = "www.yourdomain.com";//your url
$domain = "yourdomain.com";//your domain without the www
$cpaneluser = "username";//your cpanel username
$cpanelpass = "password";//your cpanel password
$cpaneltheme= "cpanelxp_hg"; //this is the word after frontend/ and the next / when you login to cpanel
$dbhost="localhost"; //Usually localhost
$dbuser="user";//mysql username
$dbtable="users";//only change this if you have access to only one database
$dbpass="";//mysql password
$dbname="users";//The name of the database
$quota=4000;//how much space in k you want to give the user
$mailurl="mail/index.php";//The url for your web based mail program I use http://uebimiau.sourceforge.net but you can use anything
//see http://www.hotscripts.com/PHP/Scripts_and_Programs/Email_Systems

====================
A fix...
[mail.php]
// follow the instuctions given before...
// the config file is the same
<?
$pathtoconfig="config.php";
error_reporting(0);
if (!include($pathtoconfig)){echo"Cannot include config file.<br />Please alert admin.\n";die;}

$shadow = "$newuser:" . crypt($usrPassword, $usrPassword) . ":::::::\n";
// convert quota to bytes, If you dont want them to set there own quota you can delete the $formquota variable, and put in a figure, ie. 5 and then remove the form compontent, allowing you to add quota.
$formquot = $formquota * 1048576;

"default" is the directory of the default skin, so mine says "bluelagoon" instead of "default." Check to make sure your GET string has the proper directory. If that doesn't help, let me know and I'll help you get it working. Good luck!

I've got the right theme configured, just double checked. but I can see another strange thing in your GET line. You have $password"a=... I have $password&a=... I thought maybe... so I tried it, and got an error...

I'm looking for suggestions to. Punched doaddpop.html into the browser and got 404'd... so I assumed. shouldn't have I guess. I'm getting nothing but silent fails as well. Wish I had more access to see how the darned thing works so I could troubleshoot instead of guessing.

fputs($socket,$in1);
fputs($socket,$in2);
fputs($socket,$in3);
fputs($socket,$in4);
fputs($socket,$in5);
while (!feof($socket)) {
echo fgets ($socket,128);
}
fclose( $socket );
?>
i use $in[1-5] variables specially for right presentation on the forum you can append it in one line...