<?php
require_once "my_smarty.class.php";
require_once "mymail.class.php";
require_once "email_message.php";
/**
* You can define the type of the letter implicitly and write the full template file name
*/
$options = array(
'template'=>'sample4.tpl', //full template name
'send_html'=>false, //send as a plain text (default - as HTML)
'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();
|