Solved

How to create email addresses and subdomains from a web form?

Posted on 2011-02-25
3
243 Views
Last Modified: 2012-06-21
Hey fellas!

 I am a PHP programmer, so what I'm asking should be done with PHP.

 I've got a web based subscription service. What I want to do, though, is create subdomains and email addresses for somebody when they sign up for my service.

For example...

 If a user comes to my site and signs up with the username mike123, I want to automatically create a mike123@mysite.com and the subdomain mike123.mysite.com.  Is there an easy way to make this possible?

-Kev
0
Comment
Question by:ProjectZIG
3 Comments
 
LVL 27

Accepted Solution

by:
Lukasz Chmielewski earned 500 total points
ID: 34982112
Kind of an old thread but if you use cpanel - this would be the way to go.
http://www.ozzu.com/programming-forum/automatic-subdomain-creation-t81614.html
0
 
LVL 5

Expert Comment

by:RizyDeWino
ID: 34986797
would depend on which control panel are you using, cPanel has comprehensive API that you can use to achieve almost any thing.

Plesk on the other hand may give you pretty hard time achieving something similar.
0
 
LVL 8

Expert Comment

by:shaunak
ID: 34990268
As @RizyDeWino said, it will be a difficult tasks for mail creation on Plesk. In cPanel you can use the api to create sub-domains and mails.

For subdomain creation there is a work around by using wild card sub-domains and then using htaccess.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now