<?php
 
 
// I know that there are many email classes, but my is gooood :)))
 
 
require_once("mail.php");
 
 
try
 
{
 
    $Mail = new CMail;
 
    
 
    $Mail->from     = "[email protected]";
 
    $Mail->fromName = "Foo Bar";
 
    $Mail->to       = Array("[email protected]", "[email protected]");
 
    $Mail->subject  = "Subject";
 
    $Mail->message  = "<HTML><BODY>This is test email</BODY></HTML>";
 
    $Mail->charset  = "iso-8859-2";
 
    $Mail->mime     = "text/html";
 
    
 
    $Mail->AddAttachment("mail.php", "mail.class.txt");
 
    $Mail->Send();
 
}
 
catch(EmailException $e)
 
{
 
    echo $e->getMessage();
 
}
 
 
?>
 
 
 |