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.

how to list pop mail accounts

Discussion in 'cPanel Developers' started by vryand, Nov 28, 2010.

  1. vryand

    vryand Registered

    Joined:
    Nov 28, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Hi, I'm doing a registration page for pop accounts on my site and want to list the exiting pop email acounts (to validate that the new email does not already exist) "The account testing123@site.com already exists!"

    I only need to know how to query the api (xmlapi.php), I have looked under the api1 and api2 functions and have not seen any that does this.

    $result = $xmlapi->api1_query($account, "Email", "listpop", array($email_domain) );
     
  2. MattDees

    MattDees cPanel Product Owner
    Staff Member

    Joined:
    Apr 29, 2005
    Messages:
    417
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    try:

    $result = $xmlapi->api2_query($account, "Email", "listpopswithdisk" );
     
Loading...

Share This Page