PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Konstantin Granin  >  Verify e-mail  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Sample file
Class: Verify e-mail
Check if an e-mail is valid using SMTP
Author: By
Last change:
Date: 4 years ago
Size: 720 bytes
 

Contents

Class file image Download
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Sample</title>
    </head>
    <body>
        <?php
       
include_once 'class.verifyEmail.php';

       
$email = 'noreplybbbbbbb@gmail.com';

       
$vmail = new verifyEmail();

        if (
$vmail->check($email)) {
            echo
'email &lt;' . $email . '&gt; exist!';
        } elseif (
$vmail->isValid($email)) {
            echo
'email &lt;' . $email . '&gt; valid, but not exist!';
        } else {
            echo
'email &lt;' . $email . '&gt; not valid and not exist!';
        }
       
?>
</body>
</html>