I am running a Hmail server which is relying on mySQL for storing data . I noticed that accounts are stored in the table called hm_accounts. What is the code to register a new email address on my server by using the signup form.
_____________________________________________________________________________________________ Original signup.php < ?php include_once("db.php"); ?>
< html >
< form action="signup.php" method="post" >
Desired Username@chemistry.my(please complete with @chemistry.my:
< input type="text" name="accountaddress"/ >
Desired Password:< input type="password" name="accountpassword" />
Account Id :< input type="text" name="accountid"/ >
< input type="submit"/>
< /form >
< /html >
The table created by hmail server in my mysql database( in xps form)
You can auto-increment accountid.
Also implement email verification through this mechanism: http://technotip.com/1672/email-verification-in-php-part-1/
accountlevel has to be set.
and the email account creation set using now() function, and expiration set by admin or is preset for some predetermined period of time.