Skip to content

This script will help to find out whether the given email id is actually exist or not

Notifications You must be signed in to change notification settings

ashad-zaman/Check-realworldemailvalidation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Check-realworldemailvalidation

This script will help to find out whether the given email id is actually exist or not in the real world

  1. Download Scripts

  2. crete a mail.php file or open your existing php file then add following code and change SMTP email ID.

       // include SMTP Email Validation Class
       require_once('smtp_validateEmail.class.php');
    
       // the email to validate
       $email = $_REQUEST['emailID'];//'[email protected]';
       // an optional sender
       $sender = ''; // Your smtp email ID like [email protected]
       // instantiate the class
       $SMTP_Validator = new SMTP_validateEmail();
       // turn on debugging if you want to view the SMTP transaction
       //$SMTP_Validator->debug = true;
       // do the validation
       $results = $SMTP_Validator->validate(array($email), $sender);
       // view results
       echo ($results[$email] ? 'valid' : 'invalid');
    
       // send email? 
       if ($results[$email]) {
         //mail($email, 'Confirm Email', 'Please reply to this email to confirm', 'From:'.$sender."\r\n"); // send email
       } else {
         //echo 'The email addresses you entered is not valid';
       }
    
  3. the submited form is

Email ID:


If you click the "Submit" button, the form-data will be sent to a page called "mail.php" or your selected php file.

Note:- If you have any question then please have your comments, i will try to answers very shortly

About

This script will help to find out whether the given email id is actually exist or not

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages