Solved

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

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

Suggested Solutions

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
The viewer will learn how to dynamically set the form action using jQuery.
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 …

735 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