1. Go to this page and download the library: Download ricardosierra/validate 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/ */
use Validate\Email;
// Initialize library class
$mail = new Email();
// Set the timeout value on stream
$mail->setStreamTimeoutWait(20);
// Set debug output mode
$mail->Debug= TRUE;
$mail->Debugoutput= 'html';
// Set email address for SMTP request
$mail->setEmailFrom('[email protected]');
// Email to check
$email = '[email protected]';
// Check if email is valid and exist
if($mail->check($email)){
echo 'Email <'.$email.'> is exist!';
}elseif(Email::validate($email)){
echo 'Email <'.$email.'> is valid, but not exist!';
}else{
echo 'Email <'.$email.'> is not valid and not exist!';
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.