Jay August
10-13-2007, 01:44 PM
I own a forum and I want to give away free emailadresses. But I hate to manage them all manually, because I expect at least 20 - 50 addresses to be given away. Is there a script available that allowes people to fill in a form and that a cpanel emailaccount is automatically created?
Vinayak_Sharma
10-13-2007, 06:06 PM
See if this could be of help http://www.atomicphp.com/php_scripts/detailed_1263.html
Jay August
10-13-2007, 06:41 PM
Thanks! Will check it out. :agree:
siforek
10-13-2007, 07:30 PM
This may help: http://www.zubrag.com/scripts/cpanel-create-email-account.php
Vinayak_Sharma
10-13-2007, 07:57 PM
I had seen that one too, but there they don't give you a signup form, you have to pass on the value like cpemail.php?user=newuser&pass=password"a=50 or if you are good at HTML and forms, you can create a frontend, which can do the job and notify of newly created email.
Jay August
10-13-2007, 07:59 PM
thanks all! Seem great solutions, perfect.
siforek
10-13-2007, 10:28 PM
I had seen that one too, but there they don't give you a signup form, you have to pass on the value like cpemail.php?user=newuser&pass=password"a=50 or if you are good at HTML and forms, you can create a frontend, which can do the job and notify of newly created email.
A simple page, or small alteration of the script to for a "signup form" as you call it isn't difficult. The "cpemail.php?user=newuser&pass=password"a=50" method is more "On the fly" IMO.
Baith
04-08-2009, 10:02 AM
I need to give students an email account using Google apps. But I don't want to create those accounts manually as I would get crazy then. Is there any such script that automatically allows students on a website of mine to create such an email for themselves using my Google Apps account?
DaveDark
04-10-2009, 11:27 AM
I own a forum and I want to give away free emailadresses. But I hate to manage them all manually, because I expect at least 20 - 50 addresses to be given away. Is there a script available that allowes people to fill in a form and that a cpanel emailaccount is automatically created?
You can also use our XML API to accomplish this. You'd simply need to make an authenticated POST request to:
https://$domain.com:2083/xml-api?user=$cpaneluser&xmlin=<cpanelaction><module>Email</module><func>addpop</func><apiversion>1</apiversion><args>$emailusername</args><args>$password</args><args>$quota</args><args>$domainname</args></cpanelaction>
There's a document on how to call our cPanel APIs from the XML API here: http://www.cpanel.net/plugins/xmlapi/cpanel.html
Here's a PHP class for the XML API:
http://forums.cpanel.net/showthread.php?t=111897