The email domain will be hosted on the same server, yes.
What needs to be created is just the forwarding part of the email.
The reason is that my client has a prestigious domain and wants to make forwarding addresses and eventually a full email package. so in a nutshell he wants to have people come along and register as a user then once in the user can opt to have a forwarding address made.
The script which checks if a particular email address is taken, I can write but the question is can PHP create an email forwarding address. ie can it integrate with the host server and create a forwarding address.
Im not sure what is being used. its hosted through media temple who seem to have their own panel but it may just be a rebrand. Thanks for the pointers. Your a diamond.
It can’t determine 100%. It can tell you if it does exist, but not if it doesn’t.
Why exactly do you want to do this? You can either trust the user or require a confirmation email (which doesn’t mean much with mailinator etc). If it’s something critical like making sure certain emails get sent to certain addresses then you should use the mail server, not php.
SELECT forward_address FROM forward_address_table WHERE email = $email
If you really need to deal with the mail server then I expect your questions would be more specific. You are registering the user, you store his email address, you can forward it to wherever you want.
<?cp <— that is a custom cpanel hook? as it can only be run in the cpanel environment?
This question is much like many other questions, which, as a fact, does have no relation to PHP.
The PHP part is very simple. As little as 2 functions, system() or fopen().
But at first you ought to know, what exactly you want to do, what action to take! To write to a file, or to a database, or to call some utility. This is merely mailserver related question, not PHP