Roundcube Community Forum

Release Support => Older Versions => 0.1 Beta 1 => Topic started by: mbx5nitro on July 14, 2006, 09:30:06 PM

Title: Is there a way...
Post by: mbx5nitro on July 14, 2006, 09:30:06 PM
Is there a way to create new users from a registration forum?
Title: Re: Is there a way...
Post by: digitalslave on July 14, 2006, 10:04:42 PM
not in RC.
Title: Re: Is there a way...
Post by: mbx5nitro on July 14, 2006, 10:28:31 PM
does anyone know of a script to create an e-mail account?
Title: Re: Is there a way...
Post by: flosoft on July 15, 2006, 07:07:07 AM
Quote from: mbx5nitro
does anyone know of a script to create an e-mail account?
Well you can use cPanel, Plesk or VHCS
Title: Re: Is there a way...
Post by: Jester on July 15, 2006, 09:03:26 PM
or if you know php, yo can write a php script that uses cPanel's or Plesk's API to create them like a registration form.
Title: Re: Is there a way...
Post by: mbx5nitro on July 16, 2006, 12:59:07 PM
I could use cPanel but my members cant log into that to create an account.

I didnt know cPanel had a API i guess i should look into it.
Title: Re: Is there a way...
Post by: xoqez on July 16, 2006, 08:36:32 PM
I have posted some information and the cpanel API http://roundcubeforum.net/index.php?topic=159.0
Title: Re: Is there a way...
Post by: hazlett on July 27, 2006, 10:06:36 PM
You can download a PHP script called "FREEMAIL" at http://quasitown.com.
This script allows visitors to register for an email account. It uses mysql and cpanel and it emails the site admin when someone does register.
Title: Re: Is there a way...
Post by: tuney on July 28, 2006, 09:16:47 AM
Hi,

I was just wondering if anyone else was interested in users to a site being able to signup for an email account and have that account created automatically.

Two links added to the RoundCube login screen, 'Signup' and 'Recover Password'.
Signup asks for name, email, alt email, security answer and question although you could add as much information as you wished.
On clicking the 'signup' their is a check to ensure that the email address requested is not already taken and if it is free to be used the account is automatically created.
A welcome email is then sent to this new account.

Password recovery just asks for email, name, and gives the security question that was entered during site creation to which the user must answer.
Login details are then sent to the alt email address given during signup.

If any one is interested I will but all the neccessary parts in a single config file for ease of setup.

You can take a look at http://www.chatlaunch.com click on webmail link.

Any suggestions, improvements etc also appreciated.
Title: Re: Is there a way...
Post by: trace on July 28, 2006, 11:13:48 PM
Wow, that's really nice. You did a super great job with this!
Title: Re: Is there a way...
Post by: tuney on July 29, 2006, 02:08:23 PM
Thank you. At the moment the users details are added to a table in the RoundCube MySQL database and the admin (or another email you specify ) is emailed with the users details so you know when a new account has been created.
A welcome email is also sent to the newly created account.
Now I have all that side working I just need to add some simple form verification for signup.
Title: Re: Is there a way...
Post by: tuney on July 31, 2006, 09:47:56 AM
Now added simple form verification for signup and added IP and timestamp written to database.
Title: Re: Is there a way...
Post by: tuney on August 05, 2006, 01:06:28 PM
Ok as promised here is the script for Auto User Email Creation.

There are 3 files that need editing.
Unzip and read README.txt for full installation instructions.

I quickly threw this last bit together as I have a paying job on at the moment and with this being free (all donations greatly accepted!) most of my time is going where the money is to pay the bills! lol

Any problems, comments, suggestions etc let me know.

Enjoy!

Note: This script is designed to work with hosts that use CPanel. A slight modification of the code would be needed if other than CPanel is being used.
Title: Re: Is there a way...
Post by: chrisbu on October 28, 2006, 10:14:59 AM
Thanks Tuney that really is a great help ....

Even an old fool like me got everything working with few problems - I DID cheat a little and add your db.ini stuff onto the standard Roundcube db.ini simply because I am lazy and was creating a totally new MySQL DB anyway.

Now perhaps I should forget chips and boards for a while and find out more about "" etc .... then maybe I can publish a way to add validation using a pre-issued registration number. Big, big MAYBE, but at least I can learn while I destroy my Webmail. Haha

Have a good weekend - and again thanks a lot

Chris