PHP Classes

File: test.php

Recommend this page to a friend!
  Classes of Filippo Toso   Check Mail   ???   Download  
File: ???
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: 21 years ago
Size: 821 bytes
 

Contents

Class file image Download
<?php
/*
* This script was writed by Setec Astronomy - [email protected]
*
* 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 ("[email protected]", "invalid#email.com", "[email protected]", "[email protected]");
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>"); }
}
?>