Roundcube Community Forum

 

Auto User Email Creation

Started by tuney, July 28, 2006, 09:12:11 AM

Previous topic - Next topic

tuney

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.


risingfree

Hi,
I'd be interested in what you have Tuney. I want to do the same kind of thing.
I've set up Roundcube and I'm well impressed - love at first sight I think! :-[
I've also got a Freemail signup script that creates the accounts but without the password change/secret question thing.

Can I see yours! :P

armisael

Waouhhh !!
It's exactly what I need !! I'm impress by your work.
It would be perfect if you could explain us how you made this :)

tuney

Glad that you like it.
Just added simple form validation and also now writes IP and timestamp to the database.
If you can give me a day or two I will make all the necessary files available to anyone who wants them.
I will put any variables that are specific to a domain, welcome email message etc in a config file for easier setup and provide .sql files for setting up the database table.


epoc

Does this create the account on the IMAP server as well?
It wont do much good if it doesnt.

tuney

Yes, it does create the account on the server. The account in the database is used only for checking that the username that the person is requesting as an email has not already been taken and for storing the other details at signup and password recovery.

bizhat

Nice work. Can i get the user signup script ?

tuney

I'm in the process of putting all configurable elements (database connection details, email messages etc) into a single include file and creating the .sql file to set the table up for easier setup.
Once this has been done I will make it available for download.

tuney

All variables needed to configure the script are now in one include file.
.sql files and installation instructions will be written and the script will be available for download sometime on Saturday.

SKaero

Nice site! I like to have that signup script its looks well coded!

tuney

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.

SKaero

Nice! :D I am loveing it! This is so cool! ;D Thank You sooo much! O0

mbx5nitro

i can sign up but cant login whats wrong. I did the file edits. Although the SQL file where it says replace the cpanel info i could have messed up there because i dont know what you ment by that.


EDIT: I fixed it. In your emsignup.php file you have to edit the domain in the cpanel link.

Scubes13

How difficult would it be to modify these scripts into an admin page within roundcube so that an administrator could create accounts, change/recover passwords, etc?

Perhaps the link to the "admin" page could only be shown for the user account of "postmaster". So in order to access the admin page, designated individuals would login as postmaster and the admin button could be displayed on the toolbar or some such.

I just think it would be really awesome to do such administration from within RC.

(Yes, I know this should a) be a plugin and b) there are many diff IMAP servers that would have to be coded for... Just thinking out loud.)

Great work though 'tuney'!!

Kevin L.

tuney

Admin section is a good idea, especially as at the moment if you delete an account in CPanel you have to go into the database and delete it there to free it up. It would be nice if this was all done for you.

It's certainly possible and I'll look into it when I get back from vacation.

Thanks for the suggestion :)