File "email_validation.php"
Full Path: /home/codejsmm/uxbridgewriters.com/serve-20250514211024-20250518085712/email_validation.php
File size: 587 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
$email = $_REQUEST["email"];
$qs = "access_key=e50aab892b4d473a30645ce4538ded44&smtp=1&formate=1&email=" . urlencode($email);
$ch = curl_init();
//exit();
$url = "http://apilayer.net/api/check?" . $qs;
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, 0);
$data = json_decode(curl_exec($ch));
curl_close($ch);
echo $data;
// Decode JSON response:
$validationResult = json_decode($data, true);
// Access and use your preferred validation result objects
$validationResult['format_valid'];
$validationResult['smtp_check'];
$validationResult['score'];
?>