Privacy Policy Terms of Use Cookie Policy API

Mailcops API

MailCops email validation API is a simple but powerful tool that opens up a world of possibilities for your company to validate any email address. The API provides you with a 360-degree report view of your email list, covering over 30 status and sub-status codes, which will help you make the right decision on whether to email a certain address.

How to integrate API anywhere, any way?

You can integrate our API easily in your website or applications. Send your emails with confidence! Our API provides you with an extensive overview of your email list, covering multiple status and sub-status codes. You can leverage this information to determine which email addresses to include in your next sender campaign.

We support API in different languages:


Single Validation



 
<?php 
$url = 'http://api.mailcops.net/v1/validate?api_key=YourApiKey&email=YourEmail-ID';
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_SSLVERSION, 6);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 15);
curl_setopt($ch, CURLOPT_TIMEOUT, 150);
$response = curl_exec($ch);
curl_close($ch);
//json response
$json = json_decode($response, false);
echo $response;
//To print results only
echo $json.result;
?>



Sample Json Response

Required :-
      Api key       :-
      Email id       :-
Output :-
      Valid       :-
      Status       :-
      MX Record       :-



Bulk Validation



 
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
  CURLOPT_URL => "http://api.mailcops.net/v1/UploadFile?api_key=YourApi_Key",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=\"file\"; filename=\"YourFileName\"\r\nContent-Type: text/csv\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW--",
  CURLOPT_HTTPHEADER => array(
                "Accept: */*",
                "Accept-Encoding: gzip, deflate",
                "Cache-Control: no-cache",
                "Connection: keep-alive",
                "Content-Length: 849",
                "Content-Type: multipart/form-data; boundary=--------------------------377263624737604965333672",
                "Cookie: ARRAffinity=40ecf7da050eee7f18da2b2299bf65b52e3edc98d29b861ea68e2d81c4ec5a92",
                "Host: api.mailcops.net",
                "Postman-Token: 1764846f-c1df-433d-ad10-1fb8c6a4dbd2,7d394533-d6c8-4fe7-9f5b-119a9e9251f0",
                "User-Agent: PostmanRuntime/7.19.0",
                "cache-control: no-cache",
                "content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW"
  ),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
                echo "cURL Error #:" . $err;
} else {
                echo $response;
}



Sample Json Response

Required :-
      Api key       :-
      File       :-
Output :-
      Greylisted       :-
      Invalid       :-
      Catch-all       :-
      Valid       :-
      No-Response       :-
      Spam_traps       :-
      Syntax-error       :-
      Unknown       :-
      Unavailable       :-