Solved

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

Posted on 2011-02-25
3
246 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

Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

839 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