PHP code example of net-tools / mail-checker
1. Go to this page and download the library: Download net-tools/mail-checker library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
net-tools / mail-checker example snippets
// getting an API object of the desired webservice, and then creating checker object (api key and timeout as parameters)
$checker = new Checker(APIs\Bouncer::create('api_key_here', 6));
// do some checking stuff
if ( $checker->check('[email protected]'))
echo "ok";
else
echo "ko";
$api = APIs\Bouncer::create('api_key_here', 6);
$checker = new Checker($api);
$taskid = $checker->upload(['[email protected]', '[email protected]']);
// ...
// later check task processing status
if ( $api->status($taskid) )
$json = $api->download($taskid);