<?php
require_once "my_smarty.class.php";
require_once "mymail.class.php";
require_once "email_message.php";
/**
* To send an HTML letter you should create a template for the letter with the ".html.tpl" extension
* in the Smarty template folder
* Also, I define the different "Reply-To" and a charset
*/
$options = array(
'template'=>'sample2', //no extension here - the type of the letter is determined by file extension
'to_address'=>'gri@devel.grik.net',
'to_name'=>'Grigori Kochanov',
'from_name'=> 'Joe Black',
'from_address'=> 'joe.black@example.com',
'reply_name'=> 'Mr. Death',
'reply_address'=> 'black@joe.com',
'charset'=>'utf-8',
);
$EML = new myMail();
$EML->setOptions($options);
$EML->assign('var','World'); // generic Smarty assign
$EML->send();
|