PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Pierre Marceau   smtpStatus   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Sample usage script.
Class: smtpStatus
Check the status of multiple SMTP servers.
Author: By
Last change:
Date: 21 years ago
Size: 1,073 bytes
 

Contents

Class file image Download
<?php

/*

Apr 8, 2003.

==============================================================
This script 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.

This file is copyright (c)2003 Pierre Marceau all rights
reserved. You may freely use and redistribute under the terms
of the GNU General Public License.
--------------------------------------------------------------
        smtpstatus - http://www.skynet.ca/~pierre/
==============================================================
*/

include ('smtpstatus.inc.php');
$mystatus = new smtpstatus;

$mystatus->header("XYZ Company Inc.");
$mystatus->cm("smtp10.on.aibn.com");
$mystatus->cm("mx1.mail.yahoo.com");
$mystatus->cm("mail.execulink.com");
$mystatus->cm("huey.harley.com");
$mystatus->cm("mailmxa2.bmwgroup.com");
$mystatus->cm("mailmxa1.bmwgroup.com");
$mystatus->cm("moped.com");
$mystatus->footer();
?>