Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

cPanel email API Search?

Discussion in 'E-mail Discussion' started by vidir, Oct 26, 2008.

  1. vidir

    vidir Registered

    Oct 26, 2008
    Likes Received:
    Trophy Points:
    Hi all members!

    i new here and im have been looking on this forum some kind of search email API for if email exist or not?

    I have hundreds of emails to administer and i cant really remember them all.

    i have used following api for a while with fopen for creating and another for deleting email acounts.

    $f = fopen ("http://$cpuser:$cppass@$cpdomain:2082/frontend/$cpskin/mail/doaddpop.html?email=$euser&domain=$edomain&password=$epass&quota=$equota", "r");

    When im creating a new email whith this it says if the email is free or not and creates it is available, that is not what i had in mind ;-)

    i whould be glad if someone had an example for seraching if email exist, whith an output with answer "yes" or "No".

    Thanks in advance...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice