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.

Php script to verify pop

Discussion in 'cPanel Developers' started by lolodev, Jul 4, 2011.

  1. lolodev

    lolodev Registered

    Joined:
    Jul 4, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    hi,

    i use PHP to script doaddpop.html to create mail account.
    but how can verify a pop is existing ??



    thanks
     
  2. cPanelDavidN

    cPanelDavidN Integration Developer
    Staff Member

    Joined:
    Dec 17, 2009
    Messages:
    571
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Hi lolodev,

    You can use the API2 Email::listpopwithdisk call.

    You should consider using something like the PHP xmlapi.php client class to perform cPanel actions. Sending requests to the user interface (ie, the HTML pages) is not advised. We have a whole set of APIs that are design specifically to be used by scripts (plenty of reading material on sdk.cpanel.net).

    Regards,
    -DavidN
     
Loading...

Share This Page