Free php and cpanel scripts to automate your daily routine

Free PHP Scripts :: cPanel Email Account Creator

Create new email accounts on cPanel based hosting with just typing all the required data in URL. No need to login to cPanel. Provide cPanel login and password once, and just use this script each time you need new email account.

Will show input form if ran without parameters. Can be setup to avoid spam using CAPTCHA.

  • Update script with your cPanel login, password, skin (once)
  • When running script to create new email account, provide following data:
    • user - new account name
    • pass - password for new email account
    • domain - email domain (optional)
    • quota - email quota in megabytes (optional)


Download cPanel Email Account Creator


August 15, 2006
cool solution:):)
September 7, 2006
I have tried this and it works great! Would be nice to allow account deletion as well... possibly something where the user can enter existing username with password and have their account deleted.

Very nice!
deepsgjain [anti-spam] yahoo.co.in October 17, 2006
Thanks for the solution, but i get some error like "Your php is running in Safe Mode" so fopen function can not be used. Is there any solution for this??
webmaster [anti-spam] usjcisenate.org November 28, 2006
Can this or a similar class be used to create forwarders instead of an entire account? For the majority of my users, this would be preferable.
? December 12, 2006
to create one account it is fine.
How to create, say 100 or 200 email accounts at one time? I have all the username in an Excel sheet. Any suggestions?
tarek.unes [anti-spam] gmail.com January 19, 2007
i get some error like "Your php is running in Safe Mode"
bob January 26, 2007
Mine doesn't work help? much?
xxpyro66xx [anti-spam] aol.com February 24, 2007
I'm looking for something almost identical to this, however I would like users to simply be able to set up forwarders (after logging in somewhere on the site, even if they don't make a mail account)
Chris March 11, 2007
My Server also doesnt do this script... I get a safe-mode php error.

Fix? Please?
rob [anti-spam] wccctv.org March 20, 2007
Script runs and reports success, however no account is created!

Attempting to create with an existing account, also reports success, but nothing changes.
faddil April 10, 2007
'tarek.unes [anti-spam] gmail.com January 18, 2007i get some error like "Your php is running in Safe Mode" '

try to change the extentsion of doaddpop from html to php or whatever your host provides you. And also your cpanel skin from 'x' to maybe 'xpevolution' or to what ever your frontend skin are.

Good Luck!!

what i need to ask the webmaster is how about to have my user to sign up by their own self.
imean how to set it up in a html form.
marcia [anti-spam] clicnet.com.br April 19, 2007
Script runs and reports success, however no account is created!
I try to create the account teste@mydomain.com.br many times, report success in any time.
June 1, 2007
Turn off safe mode.

php_value safe_mode Off

eg: http://www.sub.dn.vc
chozn1 [anti-spam] mac.com June 19, 2007
i'm looking to do this too. To create one account it is fine. How to create, say 100 or 200 email accounts at one time? I have all the username in an Excel sheet. Any suggestions?
swannie [anti-spam] intouchweb.co.za June 27, 2007

I think it would be nice to have the client enter his domain, username, password and new email details and then enter. Then you can use one script for all your clients.
July 13, 2007
Thanks for this.
Worked fine for us.

It would be -great- if it did indeed allow setting up of forwards, deleting, and bulk.

Can someone director me to ANY script/program that can do -any- of those additional feeatures?

We'll check here for a a reply from time to time.

July 13, 2007
nice one. been cracking my head open for ages trying to find out how to do this for a CMS i'm building.

didn't imagine it to be so simple!
anshu [anti-spam] 9to9solutions.com July 23, 2007
The download link is not working /// :(
Samara July 25, 2007
So how to you add a page for users to login? This only allows for user account creation.
doctorkwex [anti-spam] yahoo.com August 9, 2007
Hi, my domain is using a new cpanel theme /frontend/cpanelnew/accnttools/eadoaddaccnt.html
"cpanelnew" and it runs on port 2083.

It always throws this exception that i'm running on safe mode etc .. even when i run the script from my local machine.

Any solution on why it complains of safe mode even when i know i'm not running on that?


August 9, 2007
This is the best script...


From: Mihajlo
Location: Macedonia
August 17, 2007
If fopen is not working lookup curl it seems to work. Still working out the finer details so not posting code yet.
http://php.net/curl has some tips.

mazen.arafat [anti-spam] gmail.com August 20, 2007
It works good , just you have to change the param rvblue to x .
$cpanel=new cpmail("rubdnet","secret2001","rubd.net","rvblue");
Remotive September 13, 2007
I get the same as most people, "Your PHP is in Safe Mode." is there anyway of resolving this issue?
larryspencer001 [anti-spam] yahoo.com September 27, 2007
Jim October 1, 2007
Works great - the "Your PHP is in Safe Mode" is a generic message for ANY error; check your syntax and it should work.
OFFICEVEXCOR [anti-spam] GMAIL.COM October 17, 2007
is there a way to add in this script some fields like name , adress etc and save them in a database? and how?
ovisopa November 18, 2007
I want to upgrade to cpanel11, it will still work ? Any ideea ?
December 1, 2007
I am using cpanel11 and it works.
Ruchi Agrawal December 6, 2007
Thanks for your script and your suggestions. I just test it it works.
ionut_147 December 17, 2007
Incorrect antispam code entered.
admin [anti-spam] putiyavan.com December 21, 2007
antispam is not working send check cpatcha
December 24, 2007
Nothing Happens????? Like It Says Successfull But nuttin happens
techarea December 26, 2007
how this script looks for curl? any examples please!!!
jes [anti-spam] andresen.ca January 11, 2008
I have set it up to work with EXCEL simply "CALCUALTE" the URL! (i.e. URL of ur site and script & username (from excel) and part two of URL & Password (from excel) and last part of url. This creates a link in excel which will ececute the creation. So I clikck the 10 - 15 links - DONE



E2 has the e-mail address (including @domain.com and f2 has the password.

Hope this helps.
jes [anti-spam] andresen.ca January 12, 2008
Modified the EXCEL above to provide a hypelink correctly:

=HYPERLINK("http://ur_domain.com/cpemail.php?user="&LEFT(E2,FIND("@",E2)-1)&"&pass="&F2&"&quota=30","CREATE account OR update password")

I ALSO modified the script to update the password IF the account already exists.

Greets to all.
jonangel6 [anti-spam] yahoo.com January 27, 2008
hi, could u show me how to setup this software on my server. i'll be grateful
vinod at vinodrawat dot com February 4, 2008
thanks a ton i'm trying to create my own, and found urs, with captcha. working fine for me :)
temperariry: http://americanfavorite.us/cpemail.php

Ale February 10, 2008
Doesn't Really WORK LOL !!!!

it Says it Created But It's not really Created...
Can u Give Me Tutorial??
rajrech [anti-spam] gmail.com February 12, 2008
in cpanel which script is better whether PHP or ASP
rajrech [anti-spam] gmail.com February 12, 2008
i wanted to change my site to ASP from PHP. please suggest me. how can i do.
webmaster [anti-spam] mattspchelp.co.uk February 14, 2008
hey guys gonna download this script and get it fixed if i can find any problems that is lol

Matt February 15, 2008
Hay all. Great script zubrag! I almost have my entire site working flawlessly. I am having one little issue with the email login page.
1) First I would like to not have my customers have to type in the @xxxxxxx.com for the username. I'm sure there is a way to do this but it has escaped me.
2)When I try to login an ftp like box pops up and asks for the same info again, how can I get this to stop and just login directly? This is my website http://www.zonefyi.com. Thank you again zubrag.
Matt February 15, 2008
Oh and by the way. For anybody considering this script there is a great working example on my site. Go to www.zonefyi.com and click on the "Sign Up For Free Email" link. Once my login dilema is solved it works flawlessly! Thanks zubrag.
jrsoares2000 [anti-spam] yahoo.com February 19, 2008
antispam files (CAPTCHA) its show missing picture. I jist put font in main directory folder still it show missing pic. please help
jrsoares2000 [anti-spam] yahoo.com February 19, 2008
When I enter username, password, and CAPTCHA, it give this message "Cannot create email account. Possible reasons: "fopen" function allowed on your server, PHP is running in SAFE mode" Please help
ck23pride [anti-spam] yahoo.com March 7, 2008
Please how can i create a cpanel email.and what are the reuirement.please kindly connect to friends with the ideal
Allison March 9, 2008
Hi. I'm a bit confused and hope that I can get some help before downloading. Is there a demo on this site? Also, I checked the ZoneFYI.com site and it would appear that site is running a CGI Perl script - I thought this was a PHP script. Can you offer multiple domain choices? Can it be set as a "temporary email" address solution like that found at DeadAddress.com?
sashamarar [anti-spam] hotmail.com March 28, 2008
Finally got it to work with X3 cPanel version.

You guys need to edit just some thing by opening the cpemail.php in text mode and write this :

("http://$cpuser:$cppass@$cpdomain:2082/frontend/$cpskin/mail/doaddpop.html?email=$euser&domain=$edomain&password=$epass&quota=$equota", "r");

("http://$cpuser:$cppass@$cpdomain:2082/frontend/$cpskin/mail/doaddpop.html?email=$euser&domain=$edomain&password=$epass&password=$epass&quota=$equota", "r");

For those whose antispam dont work:
Change from this :
$antispam = true;
$antispam = false;
Leave feedback to see if it worked on yours
March 30, 2008
I had the same safe mode error. I figured out I have to put in

$cpskin = 'x3'; // cPanel skin. Mostly x or x2.

Notice the 'x3' part

Make sure that the version is set correct.

Check the URL that it looks for and make sure it matches your cPanel.

Basically make sure every setting is correct.

Hopefully you had as good as luck as me!

alselwi99 [anti-spam] yahoo.com April 4, 2008
how open my email without cpanel but
the script contunt my header
mayron.guevara [anti-spam] gmail.com April 11, 2008
Great Job.
I hava a Question, How apply this Script to FTP Accounts ????? Thanks
dgb April 15, 2008
For my host (using cpanel 11 with x3 skin) I had to add a "password2" parameter to the URL in the PHP file.

If you want to see what parameters need to be passed, you can use the nifty DebugBar extension for Internet Explorer to see all the headers.
eifhglobalbiz [anti-spam] gmail.com April 15, 2008
We are unable to set this up.... Please help as soon as possible...
martinbenja April 18, 2008
i want to have this cpanel
nick April 20, 2008
so this software lets the peole who come to your site to make a acount up on it how do u use that then could some 1 email me bk nickboy2k7@hotmail.co.uk
drgarcia [anti-spam] etb.net.co April 21, 2008
some one had used wget -i to create multiple accounts? there is anoter similar command?
admin [anti-spam] nsidethebox.com April 22, 2008
Anyone have any ideas on how to fix the captcha?? if you could help me out that would be great!
jkranthikiran [anti-spam] gmail.com April 26, 2008
your code is working for unix server but can you help me out for plesk window hosting server
mrfisho [anti-spam] hotmail.com May 9, 2008
Has anyone seen a similar script for Plesk ?
sashamarar [anti-spam] hotmail.com May 11, 2008
If someone needs help,email me. I might help you...
stan.morrow [anti-spam] paramedicinfo.ca May 16, 2008
I got it to work but when a account is created i get this error. Could you please point me in the right direction.

Warning: fgets() [function.fgets]: SSL: fatal protocol error in /home3/paramedi/public_html/test/cpemail.php on line 88
stan.morrow [anti-spam] paramedicinfo.ca May 17, 2008
Thanks For the Great script, I got it work fully with no errors!!!!!
3dmurali [anti-spam] gmail.com May 25, 2008
You sir, are a God! Works perfect!
MrTom May 26, 2008
Its a fantastic script! is there a way that when you create a new account it will auto setup say a webmail like squirrelmail ?
admin [anti-spam] gooadv.com June 22, 2008
hi, i have problem Your antispam not work the images don't come out..y? can u help me
amr.abdulhakim [anti-spam] gmail.com June 23, 2008
please , iwant the script to allow account password update ,, if the user changes the password i can change it within the script ,, please guys i seriously need it .. thanx alot
June 23, 2008
Account created successfuly. But i changed password in webpages but i want to change that password in cpanel email accont same time ?? is it posssible??
Tks for advance
bluedan21 [anti-spam] hotmail.com July 1, 2008
i have a problem wz anti spam, the imege dosent appers. what shall i do ?
ankaranakliyat [anti-spam] gmail.com July 11, 2008
very nice article.
Burhanuddin July 11, 2008
Hi guys i hav brought to u guys an amazing free web hoster which provides absolute free hosting.
It suports
ftp, mysql 5, php 5, cpanel, 350mb disk space, 100 gb bandwidth, mod_rewrite, GD, Curl and lots more

signup now-goto this link below


signup today and make a profesional looking website
Rafael Delmonte July 28, 2008
El script realmente funciona. El mismo me ha permitido resolver el problema que constituye la creación de nuevas cuentas de Email por parte de mis clientes.

Y es que para crear nuevas cuentas de Email antes yo tenía que darle el Usuario y la Contraseña de acceso al servidor a mis clientes... Ustedes saben los riesgos que se corren, sobre todo en los casos de servidores compartidos: Un cliente "curioso" al verse dentro del servidor puede dañar el sitio web completo.
Rafael Delmonte July 28, 2008
Al script le he hecho las siguientes modificaciones para adaptarlo a las necesidades de la gente de habla hispana:

1. Total traducción al español.
2. Rediseño total para hacerlo más atractivo.
3. Inclusión dentro del paquete de la fuente "Arial.ttf" para el funcionanmiento de CATCHA.
4. Un breve instructivo para la configuración del script.

Estoy dispuesto a compartir con todos el script modificado, pero necesito de autorización dado que el mismo, como usdedes saben, no es de mi autoría.

Para cualquier sugerencia en este sentido, esta es mi dirección:

iwan ngonar saputra July 29, 2008
thanx for the script

it does really work on my cpanel using x3 theme.

tenkyiu.... beybeh....
July 30, 2008
yes i would like to see if this works for Plesk?
Cubix August 19, 2008
Works great! Love it. Thanks

fiskilis [anti-spam] gmail.com September 4, 2008
why canot see captcha images ?? http://www.host-gr.eu/mail/cpemail.php
James September 10, 2008
Hi all. Great script. Im not that clued up on php, I can work my way around a little bit tho. This works fine but I would like it to direct to a new page if the account was created succesfully. How would i do this?


James September 10, 2008
Hi all. Its ok. Sorted.


koolvin1985 [anti-spam] yahoo.com September 12, 2008
can u help me and creat a c panel with my company name. i will pay what ever its gonna cost
aryol [anti-spam] aryol.com.tr September 23, 2008
nice page.thanks
http://www.aryol.com.tr prefabrik
October 24, 2008
nice solution!!!
is there a solution to check if email exist or not with answer yes or no?

Best regards VT
mangrw [anti-spam] yahoo.com October 25, 2008
i want free yahoo multi account creator plz help me thanks
darthmaul1289 [anti-spam] gmail.com November 3, 2008
how do u use it!!!
Gary November 5, 2008
Rather than give a "quota" for anything.. is there a way to specify which "package" should be used... eg:
kaytan November 8, 2008
pritis_dwibedi [anti-spam] yahoo.co.in November 21, 2008
this script really worked, it helped me a lot.By the way can we create subdomain in the same way. please help me
fhsalez [anti-spam] hotmail.com December 7, 2008
Same here. Script is not working and nobody at Zubrag reall cares :(
Seems impossible to create an email account. It says it is created but no account gets created and you can, of course, try to create it over and over again. There should be some helpto get it working but not no, but .... no
henryhans59 [anti-spam] yahoo.com December 17, 2008
please i need a cpanel domain
xav.ice(anti-spam)gmail.com December 17, 2008
Modify the code "cPanel Email Account Creator" to create multiple mail accounts in a single click.

Those who wish to contact me xav.ice (AT) gmail.com
We sell just 20 U.S. dollars.
Woody December 22, 2008
This script is GREAT! Thank you very much!
For those of you who want to have a forwarder then all your customers need to do is set up their email account and then set it up to forward all their mail to whatever account.
For those who are wondering how the customer logs into their account, these are the easiest two options:
1 Make an iFrame page to the url of your webmail server. This option is best as it keeps all your own page design. Remember to test it 1st and make sure the width of your page is big enough for the webmail to be viewed correctly.
2 Make a link from any of your pages to the webmail url. This way only shows the webmail prog itself, none of your site's web design is shown so it looks a little naff and unprofessional.
December 23, 2008
The script is simple and it works, but it DEFINATELY poses a GREAT security threat. Since the cPanel login information is hard-coded into the script, ANYONE can get your cPanel login info and have COMPLETE control over your server. Not a good idea unless you are using the script for administration purposes.
info [anti-spam] stablephp.com January 12, 2009
If you are looking for one that your users can sign up at, change their own password, reset their lost pword, and you can administer and charge them via paypal....look here. no encrypted code, templated, and secure.

Spike [anti-spam] windowslive.com January 14, 2009
hey i have tried this and it works perfect, but i have one question, what if there is an existing user and he wants to change his email account password, like he has to login first to his email account first and then change his email account password, is that possible ?
etufan_cetin [anti-spam] yahoo.com February 4, 2009
Thank you. It's working
me [anti-spam] me [anti-spam] .com February 19, 2009
why dont you upload the script with all the mods included?
mtamim February 26, 2009
cool.. it's what i'm looking for
rucha March 3, 2009
Warning: fopen(http://.@:2082/frontend//mail/doaddpop.html?
[function.fopen]: failed to open stream: Success in cpanel email/panel/cpemail.php on line 82
Cannot create email account. Possible reasons: "fopen" function allowed on your server, PHP is running in SAFE mode

Can someone help me solve this problem?explain in detail?
records2009 [anti-spam] ubbi.com March 30, 2009
Please how can i reach you? Your tel or email.
hardymendozaa [anti-spam] hotmail.com April 3, 2009
hola me parecio interesante el articulo pero sabes he descargado he cambiado todo lo subi a mi servidor y al momento que creo la nueva cuenta se crea con exito pero voy a ver a mi panel de control y no veo ningun correo creado con el nombre que puse porque?
reena.antony [anti-spam] g-antssoft.com April 8, 2009
Thanks for the solution, but i get some error like "Your php is running in Safe Mode" so fopen function can not be used. Is there any solution for this??
byesani [anti-spam] yahoo.com April 18, 2009
very nice
albert_einistein [anti-spam] yahoo.com April 19, 2009
Good! ;)
bindassweb [anti-spam] yahoo.in May 1, 2009
hi i want to ask you can i use it for provide emaail services from my web site to my visitors those need my email is it safe
asrarshaikh1(antispam}yahoo.com May 4, 2009
please can u tell me that is its safe to add link on my web site showing that create your own email under our domain nlike that is it safe to give in online please tell me

thanks in advance
vijay May 5, 2009
As per given script its run properly but in plesk it not show created email ids.
Is there any wrong in that script
emma May 14, 2009
how can i install this cpanel-create-email-account.php to send mail
saadmanna [anti-spam] uvce.ac.in May 15, 2009
Warning: fopen(http://...@sagar@ [function.fopen]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/uvceaci1/public_html/cpemail.php on line 78

Cannot create email account. Possible reasons: "fopen" function allowed on your server, PHP is running in SAFE mode
saadmanna [anti-spam] yahoo.com May 16, 2009
cPanel Email Account Creator can this work for justhost....???
Salman Siddiq June 8, 2009
captcha code not show did not work correctly help me
sakthi54086 [anti-spam] gmail.com June 24, 2009
Yes its working perfectly . but is there any possible to change the email accounts password from php? Is there any scripts available for changing password of panel email accounts using scripts ?
June 29, 2009
Really a cool solution.. I found some problem with finding out the theme.. But the url to find out theme which is available makes this work easier....
Thanks one and all..
Azmeen June 30, 2009
Thank you for this wonderful script.

You're a Godsend!
evana July 16, 2009
hi! i am trying to use this code but this error is coming."ERROR: FTP Account not created. Please make sure you passed correct parameters." Please help me out!!!
damian July 20, 2009
thanks for the great scripts
what is with all these people that either cant get it to work and want you to come and fix it for them or want you to write something else just because they need it?
vignes September 8, 2009
Dear friends,
signup page is displaying correctly and aftre signup success message is also showing. But the account is not created in my cpanel. Please help.
I turned off captcha img.
molotsi October 7, 2009
i am one of those who gets a message that email is created but nothing happens in the CPanel. Please help!
molotsi October 7, 2009
IT IS WORKING, THANK YOU THANK YOU THANK YOU... I used the wrong Cpanel username, thats why it didnt work first time.
FRANK October 22, 2009
is great but if i want to create the email account automatically also with a specified filter what shoould i do?
November 26, 2009
Hello, Pls how can i open the site for cpanel
dickrel3k [anti-spam] yahoo.com November 26, 2009
I need cpanel to used and how can you help me with
oliver_khoury [anti-spam] hotmail.com December 13, 2009
You've tried to sign in too many times with an incorrect e-mail address or password
oliverkhoury4 [anti-spam] hotmail.com December 16, 2009
You've tried to sign in too many times to this account. A temporary delay helps prevent people from trying to guess your password.

Asep Rohimat December 17, 2009
Hatur nuhun kang, hebat lah si akang mah.
Asep Rohimat December 23, 2009
Wooowwwww Keereennn Abizz, Great job, its work. THANK YOU THANK YOU.
one_two [anti-spam] 1378mail.com January 2, 2010
it is good
Chris January 13, 2010
It took me a moment because of all the subdomains I had. Also if you are trying this make sure that your php.ini allows url fopen.
Chris January 13, 2010
Thanks a million to the creator. I am playing with your tools right now. I must say they are a great set of tools
info [anti-spam] bwor.net February 8, 2010
This script is not working with cpanel 11
franglysebastin [anti-spam] gmail.com February 19, 2010
email account is created in my cpanel. then how to receive a mail from my site. here iam using php.
jatin8008 [anti-spam] gmail.com February 19, 2010
Thanks :) it works fine
February 21, 2010
I try, but this script not word with cpanel 11
ejovi.ejiro [anti-spam] yahoo.com March 7, 2010
please how can i get a c panel server name user name and password
roger.andersen [anti-spam] gmail.com March 20, 2010
to get CAPTCHA to work, enter the absolute path to the font file like this

$font = $_SERVER['DOCUMENT_ROOT'].'/arial.ttf';
alipour.m [anti-spam] live.com March 29, 2010
It works but when i want to creat an existing account it sats creat successfully!!!!!!!!!
what should i do?
AfghanLions April 14, 2010
if any one get safe mode error???? means the theme wrong selection.. there are few like (x) (x2) (x3)... if u r runing (x3) and u put (x2) this is when u gonna get safemode error. if u r not sure about ur theme, its simple open your cpanel in internet explorer (e.g:http://www.yourdomain.com:2082/frontend/x3/index.html) this link include (x3) means x3 theme. for more help contact me on info@afghanlions.com, www.afghanlions.com. thank you
subikar April 19, 2010
Hi Thank you for the great application. I develop this with joomla. Once user create account to joomla and try to access there email first time will create user and login. This is working superb for me. You can simply check it from here. http://www.soberfolk.org. Once you create user go to webmail from user menu and see that works.
Joseph April 21, 2010
Hi. Great product - I cannot get antispam to work though. Any thoughts? I followed some of the advice from threads, but still will not work.
ezenniablonsky [anti-spam] yahoo.com May 31, 2010
how can i download cpanel and use it to send mail
admin [anti-spam] shbabe.com June 21, 2010
it's nice idea but please one thing does not work is the antispam code image doesn't appear
mazen July 26, 2010
YB3TD July 27, 2010
php safe mode appear as signal of failure creation. it's commonly caused by file named doaddpop.html is not exist on our hosting system. so anyone who kind to share this small file, it's much appreciated.
lopezeat [anti-spam] gmail.com July 28, 2010
Hola a todos. No se por que no puedo visualizar el captcha
mikewhite August 1, 2010
i need a script to create emails for eathlink.net webhosting control center/panel
sonu August 2, 2010
creat email address
andy August 17, 2010
This script doesn't work anymore. New Cpanel version uses XML-API call for great new email. I hope the author update this script
francs August 18, 2010
updated script August 18, 2010
haven't see any updates.
I decided to change the script using the new cpanel client api class.
This download should work now.
SK Developers August 24, 2010
I would like to intro http://www.thefriendster.com soical site
<a href="http://www.rankeronline.com" >Article Directory</a>
johnmike9048 [anti-spam] yahoo.in August 24, 2010
how can i get cpanel login pages ? help me
September 4, 2010

We have created a new script, similar to this one, that allows not only email account creation, but also delete, forward, check existing accounts, edit existing passwords. Any interested please contact matthewnoterman@gmail.com
pascal [anti-spam] webpeople.nl September 16, 2010
Is there a way to have the cPanel Subdomains Creator working on a server where Plesk is the control software ? Please let me know if somebody knows a solution.
oarauto [anti-spam] i-mail.co.cc October 9, 2010
Hey guys! Could any one help to make this script work? I already tried all the things above and nothing. It says that the new email is created but in the Cpanel it does not appear.
Please, if possible send me a mail.

Thanks & Regards.
lokerz53 [anti-spam] gmail.com November 6, 2010
very nice
thanks to you
riadhk [anti-spam] gmail.com December 18, 2010
(Download cPanel Email Account Creator)this download zip has no .exe file.that's i can't working with the software.or if this download file is right then how can i will work with this format. plz give me the solution
Rivu December 24, 2010
it will be useful for provide a account creator to site users if we get boxes for "First name" ,"Last name" and a "Repeat Desired password".

I hope we'll get it in future.
Thanks.Cool script. :)
KAKHA13 January 5, 2011
$f = fopen ("http://$cpuser:$cppass@$cpdomain:2082/frontend/$cpskin/mail/doaddpop.html?email=$euser&domain=$edomain&password=$epass&quota=$equota", "r");

it code works nice... replace old with this
February 24, 2011
This fails utterly. Warning: fopen(http://...@IP.ADDRESS.HERE:2082/frontend/x/mail/doaddpop.html?email=user&domain=domain.com&password=pass&quota=0) [function.fopen]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/user/public_html/cpemail.php on line 79

If you go manually to /frontend/x/mail/doaddpop.html you also get a 404. This method is not used by cPanel anymore.
March 9, 2011
"Cannot create email account. Possible reasons: "fopen" function allowed on your server, PHP is running in SAFE mode". help me
nsereyvathana [anti-spam] gmail.com March 22, 2011
i need my account to my e-mail
Bar&#305;&#351; May 1, 2011
Thank you very much. It working perfect.
abhishekrobotics [anti-spam] gmail.com May 6, 2011
this dont work in cpanel accounts which do not use header authentication . my cpanel account is with mochahost they use https login with cpanel session in url for security . plzz help me my url is in form as below
Selbert May 16, 2011
mail [anti-spam] way2cool.tk May 19, 2011
account is not in email accounts however it is created help for this email me mail@way2cool.tk
dherrin [anti-spam] yahoo.com May 21, 2011
Hey all, I had this working a while back with curl instead of the fopen but now curl does not like the passing of the user and pw in the url. I just happened to notice that everyone is missing a post from above!!! https://sourceforge.net/projects/cpanelemail/
I just tried that and it worked beautifully.
francois [anti-spam] tandteg.co.za June 10, 2011
Good day!

I am using ISPConfic

Do you have any script that would be able to perform this function on my website?

I would like for my community to be able to create their own email account.

Please help

Kind Regards

jayanta [anti-spam] skynetonline.info June 18, 2011
Warning: fopen(http://...@templatelogoflash.com:2082/frontend/x2/mail/doaddpop.html?email=jayanta&domain=templatelogoflash.com&password=jayanta1234&password=jayanta1234&quota=20) [function.fopen]: failed to open stream: Connection refused in /home/content/s/k/y/skynetsol1/html/domains/projectscare/limacharlie/cpemail.php on line 77
lcadeo [anti-spam] gmail.com August 6, 2011
how can we create account in cpanel for different user.Can you help me. My cpanel skin is x3.
dan August 25, 2011
how di i create function to send me an email every time a new email is created with the script.

i have it set up and running fine here
but i want to know every time someone creates a new email. please help, otherwise i think i may just stop using it. i like it alot. ijust need verification email every time a new user creates.

Thank you.
you may email me here
dan August 25, 2011
never mind.. i just got it by adding:

// Create email account
$f = fopen ("http://$cpuser:$cppass@$cpdomain:2082/frontend/$cpskin/mail/doaddpop.html?email=$euser&domain=$edomain&password=$epass&quota=$equota", "r");
<!--added-->// Send email to confirm signup
$to = "me@gmail.com";
$subject = "New Signup Confirmation";
$message = "You have a new signup";
$success = mail($to,$subject,$message);
<!--end added-->
if (!$f) {
$msg = 'Cannot create email account. Possible reasons: "fopen" function allowed on your server, PHP is running in SAFE mode';
dan August 25, 2011
for info in email change message line to reflect:
$message = "$euser@$cpdomain with password $epass with a quota of $equota Mb- A New User Just Registered for email at Verizon Email.info";
russ September 17, 2011
kudos man. I needed this. I have users signup for replicating websites, and i want to automatically make their email address using the "sitename" they pick. Now i gotta learn how to do dual post action
Scott September 27, 2011
How can I contact the creator of this script.
Joe October 2, 2011
Just a quick note to all. This script and most if not all other cpanel scripts will not work if security tokens are enabled by your host in cpanel/whm. There is no way to generate tokens with php. If you have root access you can disable them in WHM under Tweak Settings.
[anti-spam] TARAKESH [anti-spam] October 4, 2011
yuki October 27, 2011
i want tono how to usit can you tel me
November 1, 2011
am new here please and just got started please i hope no one will be offended if i contact u
November 16, 2011
modify the the required parameters to adapt my cpanel, and disable the antispam, this script worked like a charm~ thanks a lot
nigeen.sabir [anti-spam] yahoo.com November 27, 2011
Hamza_ [anti-spam] yahoo.com November 28, 2011
Bala murugan November 28, 2011
0553259977 December 11, 2011
iam a new email user
salinadxb [anti-spam] gmail.com December 11, 2011
please i create an email but i need to open my mails without opening the admin side... please help
anunov1990 [anti-spam] gmail.com December 13, 2011
i am getting this error while creating account
"Incorrect antispam code entered."
info [anti-spam] devanhcrow.com January 21, 2012
I have an updated and secure version that can be rolled out on all client websites. PM me at info@devanhcrow.com if you want a copy of my script for this.
wyatt123 [anti-spam] .com February 28, 2012
I love my new e-mail!
Goodluck March 4, 2012
I want to open a new email account
Shegzybaba50 [anti-spam] yahoo.Com March 4, 2012
I love this site
March 8, 2012
Do you need a hosting account like for a website OR? I can't seem to run offline on my computer ( vista X 86)
jesstep78 [anti-spam] gmail.com March 10, 2012
I was looking for anyone out there who could do a little bit of php and mysql work for me. I would be willing to pay for the work. I need a database created ans such. If interested please contact me. 419-740-7182
thanks much and be sure to hit one when you call the number at the menu.
May 3, 2012
Deprecated: Function ereg() is deprecated on line 89 what does this mean ?
kashif.rehman.arain [anti-spam] gmail.com August 1, 2012
By remove capcha and change $cpskin = 'x' to $cpskin = 'x3'is working for me.
Bob September 8, 2012
Do you have a script for creating Forwarders in cPanel? Can you make a custom script? Where can I buy scripts?
napster September 15, 2012
hey guys, please use mass gmail account creator or mass hotmail account creator software download link is http://www.easytechsoft.com
kirk.tuga [anti-spam] gmail.com October 5, 2012
Please i need help keep getting thir error and stuck on it! How do i change my fopen error in a cpanel or something?


Cannot create email account. Possible reasons: "fopen" function allowed on your server, PHP is running in SAFE mode
November 12, 2012
i made my own type of email system with a javascript and a small sever company i payed and it work out better than this.
March 8, 2013
This work great thank you.

finetechcode [anti-spam] gmail.com April 10, 2013
i am facing some problem ,i have a new website <a href="http://finetechcode.com">php project</a>,i have not created any web mail accout earlier here,but when i create it gives me error message "you have exceede mail quota",even i have no mail account .please help me
celeb.pic [anti-spam] gmail.com June 28, 2013
Hi.. im trying it mn my new server ... its not working .. results says crated .. but when i got to cpanel nothing is there

please suggest
olen [anti-spam] questconsultants.us June 30, 2013
Having read every single post, above, and having had every error at first, here is what your problem(s) could be if this doesn't work for you:
1. If getting fopen errors, you probably have the wrong cpanel SKIN version set in the script. BTW...cpanel version (for example, 11) us not the same as the skin version (for example, x3). skin version will show on your URL line when logged into cpanel, such as x x2 or x3
2. apparently the fopen error can be somewhat generic, popping up for numerous reasons
3. if your CAPTCHA image does not appear, try uploading arial.ttf to your main public-html directory
4. Obviously, make sure you have your cpanel user, password and domain correct. Remember that passwords are case-sensitive
5. Unfortunately, when you get this far, and it still doesn't work, you might find that Joe, above, is right...your host is set to require tokens, and you don't have access to the part of Web Host Manager which allows that requirement to be turned off.
olen [anti-spam] questconsultants.us June 30, 2013
BTW, I don't how you can possibly trust yourself to try installing or modifying scripts if you don't know this...but, no-one would use cpanel itself as an email "engine". Just enter yourdomain/webmail into a browser and log in to read or write email. Just, also, remember that the username is the whole email address, not just the prefix.
ganesh_guwahati [anti-spam] hotmail.com October 2, 2013
You are a genius, it worked after little struggle... I was also getting fopen error. then I changes cpanel skin to x3 as you suggested and it worked like a charm
yuvaraj November 14, 2013
Refer this link, http://tobbynews.com/create-e-mail-account-in-c-panel-using-php.html

i tried it, it's working good. it's easy setup to create e-mail with cpanel using php from toobynews.com
Amreed8 [anti-spam] gmail.com November 15, 2013
facebook [anti-spam] cyberindo.biz November 16, 2013
Damn its Work,awesome
renome [anti-spam] live.com January 15, 2014
Ótimo, legal, vou testar e depois deixo meu comentário de avaliação!!!
adersonteixeira [anti-spam] gmail.com March 7, 2014
não funciona!
April 11, 2014
I found the best solution for this script, I deleted it! too many conflicting solutions!!!
Marielle May 8, 2014
Awesome free script, thanks! I did everything manually first by following this tutorial - http://blogerr.net/creating-and-setting-up-cpanel-email-accounts/ - and then used this script for bulk creation. Easy-peasy! :)
June 15, 2014
header ("Location: http://www.tnsgames.net");
June 15, 2014
<script type="text/javascript">
function redireccionar(){
setTimeout ("redireccionar()", 500); //tiempo expresado en milisegundos
Kumaran November 20, 2014
Hi sir!. thx for ur script.
If I want add quota as unlimited, how should I want to enter the value?
Eduardo December 15, 2014
Not work, have fail security and is a shi t and old, na. Change this big shi t zubrag, stop fail security in servers
cagriytbe [anti-spam] gmail.com December 29, 2014
Hi! Please fix this script :)
thomas May 8, 2015
if you want to delete, just change the code : doaddpop.html to realdelpop.html

and enter vars: &email=*** and &domain=***
herman [anti-spam] appacyber.net June 20, 2015
I've found nothing around months about this. I've also read comments written here that there's been bugs., Its okay. because this script challenges me to attempt to get it right. thanks ... it's so kind help.
james July 5, 2015
had same problems everyone else was posting about safe mode error.

fixed by following message posted by sashamarar [anti-spam] hotmail.com on March 28, 2008.
everything working fine now.
Kudos to sashamarar!
dbmdude July 18, 2015
james/sashamarar, I am not sure how to interpret what sashamarar posted on March 28, 2008; can one of you clarify the edit?
Yagami October 5, 2015
it's cool this script ^^
Shuvo October 5, 2015
My captcha not showing. Please help me
sigalambigha [anti-spam] gmail.com October 23, 2015
thanks for such a good solution. Very good code with good documentation
anu [anti-spam] mail.com November 11, 2015
Please Tutorial.
Chasqui Market December 1, 2015
It works, for the people that couldnt create and just said "Account Created" make sure that the password created contains a nonalphanumeric on the new password, otherwise, the server accepts the command, but doesnt create the mail. So the solution is to add a javascript on the php, to make sure a nonalphanumeric on the password, and then it will work. Cheers! and Thanks!
f.glenn.abalos [anti-spam] gmail.com December 18, 2015
Please help.. I generate this error:

Cannot create email account. Possible reasons: "fopen" function allowed on your server, PHP is running in SAFE mode

renegade6.army [anti-spam] gmail.com September 12, 2016
Has anyone created this script with code that I could load into a webpage that displays a form with required data to create the email account? A form with Name, password and captcha box?

Or know where i can get this from?
thanks to all for input.
tiago_pvo [anti-spam] hotmail.com March 19, 2017
obrigado thanks
ssdayal.singhal [anti-spam] gmail.com April 12, 2017
i am facing this issue - Cannot create email account. Possible reasons: "fopen" function allowed on your server, PHP is running in SAFE mode

and captcha is also not visible
jhonattan [anti-spam] ejecutivos.com June 25, 2017
I get this error :-(

Parse error: syntax error, unexpected '<' in /home/ab7205/public_html/wp-content/plugins/insert-php-code-snippet/shortcode-handler.php(35): eval () 'd code on line 1

Help me
muneeronline97 [anti-spam] gmail.com October 13, 2017
hi i am using these code but captcha image not show so please tell me how to show captcha image
hksunny10 [anti-spam] gmail.com October 31, 2017
facing some issue

Cannot create email account. Possible reasons: "fopen" function allowed on your server, PHP is running in SAFE mode
January 23, 2018
for fopen error you have enable it on php.ini but only if you have admin access, if not you have to request it your web hosting provider.

the problem with the script is the captcha is not showing the code
gbade [anti-spam] fomeg.com May 21, 2018
This website script works for newer cpanel: https://sourceforge.net/projects/cpanelemail

step01ca [anti-spam] yahoo.ca September 12, 2018
the cpanel email creator not more working.
the new cpanel not compatable with script
anonymous December 31, 2018
I searched the search engines and found this site
auroscom.club managed to modify the cpanel creator zubrag script,,,, are there any of you who are willing to share with me a script like the site auroscom.club ?
' or '1' = '1 February 12, 2020
hitesh.d.php [anti-spam] gmail.com April 30, 2020
i installed this and after done all the settings i run its and its giving message successfull create email but not creating actually just getting successfull message. and also not getting any error , i tried it with error reporting on but not getting any errror on this also.
Ar Rakin December 4, 2020
Call to undefined function ereg()
How to fix this?