| 
<?phprequire_once "my_smarty.class.php";
 require_once "mymail.class.php";
 require_once "email_message.php";
 
 /**
 *  To send a plain text letter you should create a template for the letter with the ".txt.tpl" extension
 *  in the Smarty template folder
 */
 
 
 $options = array(
 'template'=>'sample1', //no extension here - the type of the letter is determined by file extension
 'to_address'=>'[email protected]',
 'to_name'=>'Grigori Kochanov',
 'from_name'=> 'Joe Black',
 'from_address'=> '[email protected]',
 );
 
 $EML = new myMail();
 $EML->setOptions($options);
 $EML->assign('var','World'); // generic Smarty assign
 $EML->send();
 
 
 |