Check whether an email is in your bounces list
Check whether an email is in your bounces list
Verifier_NPAI
int Verifier_NPAI (login, password, email)
Description
Check whether an email address is present in the list of addresses marked as hard bounces (NPAI) in any of your previous campaigns.
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_NPAI', $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_NPAI('your_login','your_password','email'); //or //$variable = $client->__soapCall(Verifier_NPAI,$parametres);
print_r($variable); } catch (SoapFault $fault) {
trigger_error("SOAP Fault: (faultcode: {$fault->faultcode}, faultstring: {$fault->faultstring})", E_USER_ERROR);
}Last updated on