email templating system
| From: | adwinwijaya | Date: | Tue, 05 Oct 2004 01:35:55 +0000 |
| Subject: | email templating system | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-198633@lists.php.net to get a copy of this message | ||
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