Login   Register  
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 Tiberiu Malcea  >  Mail Check  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example script with comments
Class: Mail Check
E-mail address checking of syntax and MX record
Author: By
Last change:
Date: 2004-06-09 05:31
Size: 823 bytes
 

Contents

Class file image Download
<?php

/**
 *    mail_ckeck_class - USE example;
 *
 * DNS & Syntax checking
 * @version 0.1
 * @copyright 2004
 **/
 
require("mail_check_class.php");

$check = new mail_check_global;            // initiate class
$check -> email "root@yahoo.com";        // REQUIRED --> address to check
$check -> debug 1;                    // OPTIONAL --> default is 0; values: 0 / 1
$check -> system_OS "win";             // OPTIONAL --> default is WINDOWS; values: win / linux

// USE: if($check -> final_mail_check()) ------------------ your action here --------;

// USE example:
if ($check -> final_mail_check()) echo "<font style=\"color:green; font-weight:bold\">Email address IS VALID!</font>";
    else echo 
"<font style=\"color:red; font-weight:bold\">The address is NOT VALID!</font>";

$check -> debug_address();            // debuging purposes

?>