Connecting Tech Pros Worldwide Forums | Help | Site Map

HOW TO Create a script to create email addresses

Newbie
 
Join Date: Aug 2009
Posts: 4
#1: Aug 17 '09
I have registered a list of domains and was wondering if it is possible to set up a php script that will allow users to create an email at each of them e.g. at englandtillidie.com there would be a form which would let them pick a username and then the script checks if it is free, if it is it will allow them to register it and send emails from tommy@englandtillidie.com etc.

Thanks

Member
 
Join Date: May 2009
Posts: 81
#2: Aug 17 '09

re: HOW TO Create a script to create email addresses


Quote:

Originally Posted by rmail2006 View Post

I have registered a list of domains and was wondering if it is possible to set up a php script that will allow users to create an email at each of them e.g. at englandtillidie.com there would be a form which would let them pick a username and then the script checks if it is free, if it is it will allow them to register it and send emails from tommy@englandtillidie.com etc.

Thanks

You need some kind of database to store taken addresses. I don't see what's the problem.
Newbie
 
Join Date: Aug 2009
Posts: 4
#3: Aug 17 '09

re: HOW TO Create a script to create email addresses


I was wondering what code i would need to create or register the email addresses?
Dormilich's Avatar
Moderator
 
Join Date: Aug 2008
Location: Leipzig, Germany
Posts: 3,662
#4: Aug 17 '09

re: HOW TO Create a script to create email addresses


Quote:

Originally Posted by rmail2006 View Post

I was wondering what code i would need to create or register the email addresses?

like unauthorized said, you need some means to store the data, this can be a database (like MySQL, which requires the MySQL functions/classes), SQLite (a file (not server) based DB), even a simple file (though this is insecure).

decide what you want and then look for an appropriate tutorial.
gopan's Avatar
Member
 
Join Date: Apr 2009
Location: Kochi (COK), India
Posts: 41
#5: Aug 17 '09

re: HOW TO Create a script to create email addresses


try zimbra software...

http://www.zimbra.com/
Newbie
 
Join Date: Aug 2009
Posts: 4
#6: Aug 18 '09

re: HOW TO Create a script to create email addresses


Ok, I'm using php and mysql

I have tried looking for tutorials to allow users to register emails at my domain such as tom@englandtillidie.com.

Has anyone got any examples that will show me how to set up the users email account and let them access it?


Thanks very much
KUB365's Avatar
Administrator
 
Join Date: Jul 2005
Location: Portland, OR
Posts: 975
#7: Aug 18 '09

re: HOW TO Create a script to create email addresses


You'll first need to create a shell script that will create a mail account in your email program (sendmail, qmail, whatever else you might be using). The shell script will also to create a user in the system and set a password.

Take the form data from you php script pass the username and password to the schell script. Enter the username and password into a db for future reference and test for already existing email addresses.

That's probably the quickest way i can think of. Though this seems like a problem that there might already be a whole open source application for.
Newbie
 
Join Date: Aug 2009
Posts: 4
#8: Aug 26 '09

re: HOW TO Create a script to create email addresses


Iv looked all over and cannot seem to find a sell script that allows you to do that :(
Have you got any examples that i could look through?

Thanks :)
Member
 
Join Date: May 2009
Posts: 81
#9: Aug 26 '09

re: HOW TO Create a script to create email addresses


Quote:

Originally Posted by rmail2006 View Post

Iv looked all over and cannot seem to find a sell script that allows you to do that :(
Have you got any examples that i could look through?

Thanks :)

... somebody shoot me.

'nyway, you only need to explore the documentation of your mail server and see what parameters need to be passed to achieve whatever you want. Assuming you use 'nix, all you need to do is type "man <name-of-your-mail-client>". On Windows, you need to figgure out which command line switch is used for usage info (typically /?, -h, help or --help) or dig up the documentation of your mail client.

On the off chance you don't know what shell script is, you may want to start with a Google queue "<insert-operating-system-here> shell scripting".
Reply