PHP Tutorial: Dynamically Create an Email Address in CPanel

This assumes you have cPanel and permission to run the /scripts/addpop command. You’ll need to write functions for validateUsername, validatePassword, and usernameExists or you can click on the links for each of those and use mine 🙂

//run the command
shell_exec ("/scripts/addpop " .  escapeshellcmd($username) . " " . escapeshellcmd($password))
return "Your email address has been created!";

You may also like...

1 Response

  1. Karolyn says:

    Yes! Finally something аbout flash games.

Leave a Reply