PHP Classes
elePHPant
Icontem

File: test.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Setec Astronomy  >  Check Mail  >  test.php  >  Download  
File: test.php
Role: Example script
Content type: text/plain
Description: Test file
Class: Check Mail
Check the existence of an email address via SMTP
Author: By
Last change:
Date: 11 years ago
Size: 821 bytes
 

Contents

Class file image Download
<?php
/*
* This script was writed by Setec Astronomy - setec@freemail.it
*
* This script is distributed under the GPL License
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* http://www.gnu.org/licenses/gpl.txt
*
*/
include ("CCheckMail.php");

$checkmail = new CCheckMail ();

$emails = array ("info@yahoo.com", "invalid#email.com", "setec@freemail.it", "thisdoesentexist@google.com");
foreach (
$emails as $email)
{
    if (
$checkmail->execute ($email))
    { print (
"The email address $email exists!<br>"); }
    else
    { print (
"The email address $email <strong>doesn't</strong> exists!<br>"); }
}
?>