Author Topic: Auto User Email Creation  (Read 308803 times)

Offline tuney

  • Jr. Member
  • **
  • Posts: 55
Auto User Email Creation
« on: July 28, 2006, 09:12:11 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.


Offline risingfree

  • Newbie
  • *
  • Posts: 1
Re: Auto User Email Creation
« Reply #1 on: July 29, 2006, 10:21:44 AM »
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

Offline armisael

  • Newbie
  • *
  • Posts: 1
Re: Auto User Email Creation
« Reply #2 on: July 29, 2006, 01:58:00 PM »
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 :)

Offline tuney

  • Jr. Member
  • **
  • Posts: 55
Re: Auto User Email Creation
« Reply #3 on: July 31, 2006, 09:54:29 AM »
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.


Offline epoc

  • Newbie
  • *
  • Posts: 2
Re: Auto User Email Creation
« Reply #4 on: August 01, 2006, 01:00:49 PM »
Does this create the account on the IMAP server as well?
It wont do much good if it doesnt.

Offline tuney

  • Jr. Member
  • **
  • Posts: 55
Re: Auto User Email Creation
« Reply #5 on: August 01, 2006, 01:18:07 PM »
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.

Offline bizhat

  • Jr. Member
  • **
  • Posts: 10
Re: Auto User Email Creation
« Reply #6 on: August 03, 2006, 09:44:23 AM »
Nice work. Can i get the user signup script ?

Offline tuney

  • Jr. Member
  • **
  • Posts: 55
Re: Auto User Email Creation
« Reply #7 on: August 03, 2006, 10:16:28 AM »
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.

Offline tuney

  • Jr. Member
  • **
  • Posts: 55
Re: Auto User Email Creation
« Reply #8 on: August 03, 2006, 01:59:30 PM »
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.

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Re: Auto User Email Creation
« Reply #9 on: August 05, 2006, 04:55:11 AM »
Nice site! I like to have that signup script its looks well coded!

Offline tuney

  • Jr. Member
  • **
  • Posts: 55
Re: Auto User Email Creation
« Reply #10 on: August 05, 2006, 01:05:15 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.

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
Re: Auto User Email Creation
« Reply #11 on: August 05, 2006, 03:36:20 PM »
Nice! :D I am loveing it! This is so cool! ;D Thank You sooo much! O0

Offline mbx5nitro

  • Newbie
  • *
  • Posts: 5
Re: Auto User Email Creation
« Reply #12 on: August 06, 2006, 07:57:00 PM »
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.

Offline Scubes13

  • Jr. Member
  • **
  • Posts: 48
Re: Auto User Email Creation
« Reply #13 on: August 07, 2006, 01:16:00 AM »
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.

Offline tuney

  • Jr. Member
  • **
  • Posts: 55
Re: Auto User Email Creation
« Reply #14 on: August 07, 2006, 08:51:23 AM »
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 :)