Check whether an email is in your blacklist
Check whether an email is in your blacklist
Verifier_Blackliste
int Verifier_Blackliste (login, password, email)
Description
Check whether an email address is present in the list of email addresses associated with your account, containing people who no longer wish to receive your messages.
Parameters (required)
login: customer ID (nichandle)
motdepasse: the password
email: the email address
Return value
true if the address is blacklisted
false otherwise
Error messages
No field must be left empty login
No field must be left empty motdepasse
No field must be left empty email
Authentication error (invalid login / password)
Example with NuSOAP
include('nusoap/nusoap.php');
$client = new soapclient('https://www.eml-srv.com/_soap/control.php');
$parametres = array( 'login'=>'your_login', 'motdepasse'=>'your_password', 'email'=>'info@ediware.net' );
$variable=$client->call('Verifier_Blackliste', $parametres);
// Retrieve the error, if any
if($client->fault) die("Error:Code: {$client->faultcode}
" . "Detail: {$client->faultactor}
" . "Solution: {$client->faultstring}
");
echo 'Response:'.$variable.' ';Example with PHP5
try { $client = new SoapClient(null, array('location' => "https://www.eml-srv.com/_soap/control.php", 'uri' => "https://www.eml-srv.com", 'encoding'=>'ISO-8859-1' ));
$variable = $client->Verifier_Blackliste('your_login','your_password','email'); //or //$variable = $client->__soapCall(Verifier_Blackliste,$parametres);
print_r($variable); } catch (SoapFault $fault) {
trigger_error("SOAP Fault: (faultcode: {$fault->faultcode}, faultstring: {$fault->faultstring})", E_USER_ERROR);
}Last updated on