<?
 
/*    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
 
    Date: 20 Dec 2005
 
    Author: Nicola Antonio Filannino
 
    Nation: Italy
 
    City: Barletta (Ba)
 
 
    Description:
 
        This class let you send e-mail messages from your PHP pages. 
 
 
    Features:
 
        1. Switching between HTML and PLAIN format of the messages
 
        2. Usage of e-mail template to send HTML formatted e-mail
 
        3. Scalable number of e-mail template vars
 
    
 
    Important: 
 
        You can create a brand new Template, starting from a simple static HTML page.
 
        There put the variables parts in this format #VARIABLE_NAME#, after this fill the $mail->template_vars with an array
 
        as in the example whose keys are the name of the vars in the template.
 
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
 
*/
 
    
 
 
 
 
 
include ("email.class.php");
 
 
//######################Email class usage#############################################################################
 
    $mail = new Email ( "[email protected]",        //From e-mail box
 
                        "[email protected]",    //Recipients (semicolon ';' separated)
 
                        "Subject"            //Subject
 
            );
 
//####################################################################################################################
 
 
$mail->template = "mail_template.html";            //Email template fillable with others variables of the same kind of ones inside.
 
 
//The array holds the settings for the template
 
    $mail->template_vars = array ( 
 
                                "#USERNAME#" => "Peter North",
 
                                "#GFX#" => "PATH_TO_GIF"
 
            );
 
 
//We send the e-mail here!!
 
    $mail->send ();
 
 
 
 
 
?><html xmlns="http://www.w3.org/1999/xhtml">
 
<head>
 
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
 
<title>Untitled Document</title>
 
</head>
 
 
<body>
 
</body>
 
</html>
 
 
 |