Class :: cPanel Email Accounts Creator

Create e-mail addresses for cPanel accounts

This is a simple class that can be used create e-mail addresses for domains hosted using a cPanel account.

It extends a script originally made available in the zubrag.com Web site.

The class accesses a cPanel Web server and sends a command to create an e-mail account with a given address, password and quota.

The class retrieves and process the cPanel server response to determine whether the account creation was successful or it could not be created when the account already exists.

Download this class:: from here :: from phpclassess.org

Instruction:

To use this script in your website you need to change some values in cpmail_example.php

  • Dear Md. Zakir Hossain
    Dear Md. Zakir Hossain (Raju),

    We web site offer Hazrat Sultan bahu ® free reading of books our all services are non commercial

    We are happy that you are Momen Muslim we need your help for Hazrat Ali alh-aslim famly son web site

    I have tried your script
    http://www.zubrag.com/downloads/cpanel-create-email-account.zip

    But coming up this error:
    Warning: fopen(http://…@mail.hazratsultanbahu.com:2082/frontend/x/mail/doaddpop.html?email=newuser&domain=mysite.com&password=hispassword&quota=20) [function.fopen]: failed to open stream: HTTP request failed! HTTP/1.0 401 Access Denied Still Working in /home/mailhaz/public_html/cpemail.php on line 50
    Cannot create email account. Possible reasons: “fopen” function allowed on your server, PHP is running in SAFE mode

    If you can help me I can send you my Cpanel username and password

    On your help we shall add your name in this script as script author?

    Thanks!

    Yours truly,
    M Farooq
    Webmaster
    http://www.mail.hazratsultanbahu.com

    P.S. If possible sent me your answer at atco@hazratsultanbahu.com

  • Dear Raju
    Thanks for your
    Dear Raju

    Thanks for your help

    I have uploaded your both files
    http://mail.hazratsultanbahu.com/cpmail_example.php
    http://mail.hazratsultanbahu.com/cpmail_class.php

    With my cpanel username, password, URL, and skin type changes please visit above

    Then I tried the following error over come:
    Warning: fopen(http://…@rubd.net:2082/frontend/rvblue/mail/doaddpop.html?quota=20&email=haroon&domain=rubd.net&password=allahnoor99) [function.fopen]: failed to open stream: HTTP request failed! HTTP/1.0 401 Access Denied Still Working in /home/mailhaz/public_html/cpmail_class.php on line 50
    Cannot create email account. Possible reasons: “fopen” function not allowed on your server, PHP is running in SAFE mode

    Please advse any change

    Or

    If you can help me I can send you my Cpanel username and password

    Thanks!

    Yours truly,
    M Farooq
    Webmaster
    http://www.mail.hazratsultanbahu.com

  • abdu ali

    slam alikom
    i am from suaid
    slam alikom

    i am from suaid arabia JEDDAH.

    Thanks Alot for this Great Program , BUT can you make some more other PHP files for this Class to Display the current e-mails accounts in the CPanel and allow me to edit the password or the qute or Delete any of these Emails Accounts . [ Full Option ]

    I Can PAY for this..

    Regards;
    Abdu Ali Muhajab

  • Hi, i have uploaded the
    Hi, i have uploaded the class and the example file and it works, but the problem i have here is can user change the email password? because us needed. if that is possible tell me
    .

  • I want to know about
    I want to know about rss.
    pls healp me.

  • Md. Zakir Hossain
    Md. Zakir Hossain (Raju),

    sir,
    im using your script but whenever im trying to create email account im facing error with this script that
    “Cannot create email account. Possible reasons: “fopen” function not allowed on your server, PHP is running in SAFE mode”

    “fopen(http://…@anjene.com:2082/frontend/x/mail/doaddpop.html?quota=20&email=anurag&domain=anjene.com&password=admin123) [function.fopen]: failed to open stream: Success in /home/anjenec/public_html/sign-up-save.php on line 114″

    Please Help me

    if u made nay changes in ur script
    please give me a link so that i can download this.
    i check the username, password for my cpanle but still i getting the same error

    please Help me out asap

  • hungrycoder

    hello sharma,
    thanks for
    hello sharma,
    thanks for using my script. but sorry to say that, this script is too old. and I am not aware of this anymore. now I have maintaining another advanced script for long which is available here (you have to purchase it):
    http://hungrycoder.xenexbd.com/node/102 .

    so far i can suggest you is that, first of all check the username & password, and then check cPanel themes. I see you are still using X theme. but most of the servers now provides X3 theme.

    or you may try using it by changing the theme to X in your cPanel.

    i am sorry, if I failed to help you. actually i can not remember the procedures/steps of this script as I dont use it for a long time.

  • I think Hungry Coder has a
    I think Hungry Coder has a point

  • Thanks Alot for this Great
    Thanks Alot for this Great Program , BUT can you make some more other PHP files for this Class to Display the current e-mails accounts in the CPanel and allow me to edit the password or the qute or Delete any of these Emails Accounts

  • hungrycoder

    hello, it will not work in
    hello, it will not work in localhost. also not without cPanel. I see you have run it on 2082 port. but cPanel runs on 2082 or 2083 ports.

    a more improved version is here:
    http://hungrycoder.xenexbd.com/node/102

  • This is very helpful!
    This is very helpful!

  • Binod

    Dear sir,
    I have tried to
    Dear sir,

    I have tried to create email from my own cpanel but whenever i run your code, I go the error as…
    Warning: fopen(http://…@username:password@braindigit.com:2080/frontend/x2/mail/doaddpop.html?email=test@braindigit.com&domain=braindigit.com&password=bonty&quota=20) [function.fopen]: failed to open stream: HTTP request failed! HTTP/1.1 401 Access Denied Still Working in H:\xampp\htdocs\test\cpanel\cpemail.php on line 78
    Cannot create email account. Possible reasons: “fopen” function allowed on your server, PHP is running in SAFE mode

  • thanks this is very helpful