Solved

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

Posted on 2011-02-25
3
248 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

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…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
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…
The viewer will learn how to dynamically set the form action using jQuery.

752 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