Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

58 lines (41 sloc) 1.485 kb
class page_tmail extends Page {
public $skip=true;
function init(){
$this->add('View_Hint')->set('This demo shows how to use TMail class. It does not actually send semail. See source
for more information');
//$mail->set('subject','Custom Subject');
// NOTE: You do not need to copy remaining lines. They are only to demonstrate
// how TMail::send function works!
->set('Email Source');
$pre->add('Text')->set('Subject: '.$mail->get('subject',false)."\n");
From is defined in the config file:
Contents of templates/mail/test-mail.txt
<?subject?>Product Purchase Confirmation<?/?>
Hi <?$name?>
Thank you for purchasing <?$product?>.
To receive support you should register by clicking on the following link:
Jump to Line
Something went wrong with that request. Please try again.