The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XML-API, e-Mail, Password

Discussion in 'cPanel Developers' started by beaver86, May 26, 2009.

  1. beaver86

    beaver86 Registered

    Joined:
    May 26, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Where the streats have no name...
    Hello!

    I would like to see some XML-API function with which users could change their email passwords without going to http://www.domain.ext:2096, logging there, changing password...

    I think that with todays possibilities of cPanel (XML-API), and clients usage (habits) of email (WebMail), that would be very nice feature.

    In addition, if something "like" this already exists, please tell me how to do that.
    I didn't found the appropriate function in cPanel API 2 Docs.

    Thanks

    P.S.:I prefer Fast Mode and API 2....
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Here's the API1 function that the X3 theme uses for changing the password for an email address. This function is not yet available in API2.

    Code:
    <cpanel Email="passwdpop(email, password, quota, domain)">-->
    
    Email is the portion of the email address before the @ sign in this context.
     
  3. Thundercat

    Thundercat Registered

    Joined:
    Mar 14, 2005
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Quota

    Is there a function like passwdpop to change an email address's quota?
     
  4. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Yes,

    HTML:
    <cpanel Email="editquota($FORM{'email'},$FORM{'domain'},$FORM{'quota'})">
    The first parameter is the part of the email address before @

    The second parameter is the part of the email address after @

    The third parameter is the new quota, specified in megabytes (e.g. 25 for 25 megabytes)
     
Loading...

Share This Page