PHP Classes

File: example.php

Recommend this page to a friend!
  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: 1. Add debug method
2. Add option "timeout" for slow servers
Date: 7 years ago
Size: 905 bytes


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

$email = '';

$vmail = new verifyEmail();
$vmail->Debug= TRUE;
$vmail->Debugoutput= 'html';


        if (
$vmail->check($email)) {
'email &lt;' . $email . '&gt; exist!';
        } elseif (
verifyEmail::validate($email)) {
'email &lt;' . $email . '&gt; valid, but not exist!';
        } else {
'email &lt;' . $email . '&gt; not valid and not exist!';

For more information send a message to info at phpclasses dot org.