I'm using the XML-API class and I don't see a function to check if an email is available or not.
I want to check my cPanel to see if that email is taken already, if yes, return true, then if not return false.
I tried using this function :
But it just lists all the email that is on the cPanel account.
Is there an $arg I can use to check if an email already exist?
Maybe something like
$result = $xmlapi->api2_query($account, "Email", "listpops", array($email));
If the email exist
return true
else
return false
I've been searching and looking but the functions I found was for WHM.
I want to check my cPanel to see if that email is taken already, if yes, return true, then if not return false.
I tried using this function :
PHP:
$result = $xmlapi->api2_query($account, "Email", "listpops");
Is there an $arg I can use to check if an email already exist?
Maybe something like
$result = $xmlapi->api2_query($account, "Email", "listpops", array($email));
If the email exist
return true
else
return false
I've been searching and looking but the functions I found was for WHM.