Results 1 to 10 of 18

Thread: Using cPanel API for creating email account and forwarders in your own PHP scripts

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Alberto Moreno is offline Almost no longer a newbie!
    Join Date
    Jul 2011
    Posts
    3

    Default

    hhh

  2. #2
    Alberto Moreno is offline Almost no longer a newbie!
    Join Date
    Jul 2011
    Posts
    3

    Default

    Hello

    I have created the form at

    http://regidordigital.com/email_crea...il_create.html

    But there must be something I am not doing properly...

    ............
    Where it says I have put down muy cpanel username
    and where it says password, the password...

    where it says domain.com I have written regidordigital.com

    I have protected the directory. I send you details to our private forum....

    What could be wrong??

    Thx
    Alberto

  3. #3
    Matt's Avatar
    Matt is offline GlowHost Administrator
    Join Date
    Jan 2005
    Location
    Behind your monitor
    Posts
    6,389

    Default

    Is there some error message on screen or in the error_log ?
    Send your friends and site visitors to GlowHost and get $125 plus bonus!
    GlowHost Affiliate Program | Read our Blog | Follow us on X |

  4. #4
    jcrimmel is offline Newbie
    Join Date
    Sep 2013
    Posts
    2

    Default Incorporate change password API2 script?

    I everyone. I know how old this thread is so I am not entirely expecting a reply.

    I am very new to Cpanel scripts and was able to set this up with no problems at all. I am using this to allow a client to create email address for themselves and their employees without having to take the extra step of requesting it through me. (I don't want to grant them direct Cpanel access)


    I have found the Cpanel API2 script for changing passwords
    Code:
    $xmlapi = new xmlapi("Primary CPANEL domain"); 
    $xmlapi->password_auth("username",$root_pass); 
    $account = "Cpanel username"; 
    $xmlapi->api2_query($account, "Email", "passwdpop", array( 'domain' => "domain name", 'email' => "user name", 'password' => "new password") ); 
    
    and I am wondering if there would be anyway to incorporate this into the files posted in this thread. I would love to give my clients the option to change the email password if they needed to. But as I said before I am literally just learning about Cpanel APIs (12 hours now and counting!) so I'm not really sure how one would go about implementing this.

    Anyone gracious enough to help out a very very green rookie?


    Thanks in advance.
    Jason

  5. #5
    Alexander's Avatar
    Alexander is offline Technical Analyst
    Join Date
    Jul 2007
    Posts
    1,960

    Default

    Well, maybe I missed something, but they can change passwords for their email accounts in Webmail. There is an option for it on the very first page when accessing Webmail. Thus, API is not needed.

  6. #6
    jcrimmel is offline Newbie
    Join Date
    Sep 2013
    Posts
    2

    Default

    Quote Originally Posted by Alexander View Post
    Well, maybe I missed something, but they can change passwords for their email accounts in Webmail. There is an option for it on the very first page when accessing Webmail. Thus, API is not needed.

    Wow... I've been using the webmail auto load for so long that I completely forgot about that link. Now, please excuse me while I shamefully make my exit....

  7. #7
    daarkm is offline Newbie
    Join Date
    Oct 2016
    Posts
    1

    Default

    thank you very much it's work very good but i want to Chang password email script can you help me plz?

  8. #8
    GlowHost-Daniel's Avatar
    GlowHost-Daniel is online now Customer Care
    Join Date
    Feb 2014
    Posts
    2,020

    Default

    Hello daarkm,

    I'm sorry but I'm not sure I follow. You want to change an email address password for a script or by a script? You can see more about cPanel's API here.

    Please clarify your question and we'll see how we can assist further.

LinkBacks (?)

  1. 08-03-2012, 07:09 AM

Similar Threads

  1. default timezone
    By Scott in forum Programming Talk
    Replies: 14
    Last Post: 03-24-2008, 06:48 PM
  2. Single Account, Multiple Domains to WHM Account
    By rickpugh in forum WHM, Resellers, VPS and Dedicated Hosting Topics
    Replies: 3
    Last Post: 08-15-2005, 10:39 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14