<?php 
 
    include (dirname(__FILE__)."/libmail.php"); 
 
    
 
    $m= new Mail; // create the mail
 
    $m->From ("[email protected]");
 
//    $m->From ("[email protected]", "Leo at ISP");
 
 
    $m->To ("[email protected]");
 
//    $m->To (array("[email protected]", "[email protected]"));
 
//    $m->To (array("[email protected]" => "Someone", "[email protected]" => "Somebody"));
 
 
    $m->Subject ("the subject of the mail");
 
    $m->Body ("Hello\nThis is a test of the Mail component");    // set the body
 
 
    $m->Cc ("[email protected]");
 
//    $m->Cc (array("[email protected]", "[email protected]"));
 
//    $m->Cc (array("[email protected]" => "Someone", "[email protected]" => "Somebody"));
 
 
    $m->Bcc ("[email protected]");
 
//    $m->Bcc (array("[email protected]", "[email protected]"));
 
//    $m->Bcc (array("[email protected]" => "Someone", "[email protected]" => "Somebody"));
 
 
    $m->Priority (4) ;    // set the priority to Low
 
 
    $m->Attach ("/home/leo/toto.gif", "image/gif", "inline") ;    // attach a file of type image/gif to be displayed in the message if possible
 
    $m->Attach ("/home/leo/toto.gif", "image/gif", "attachment", "fun.gif"); // attach toto.gif file as fun.gif
 
 
    $m->Send ();    // send the mail
 
    echo "Mail was sent:<br><pre>", $m->Get (), "</pre>";
 
    
 
?>
 
 |