email templating system

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello php-general,

Currently I use Smarty for page templating system, and I am happy with
this. But is there any way to produce a file with smarty instead of
displaying it as a page.

I want to use this as email templating, I want to create an email and
I have a template like smarty and I want to assign it just like
smarty. Is there any templating system that suitable for me ?


Example:
[email.tpl]

Hello {$user},

Welcome to {$name_of_web}

regards,
{$system_administrator}

[email.php]

$email->assign('user', $user);
$email->assign('system_administrator', $system_administrator);
$email->assign('name_of_web', $name_of_web);
$email->send('/templates/email.tpl') ;




-- 
Best regards,
adwin

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux