Re: email templating system

From: Date: Tue, 05 Oct 2004 01:43:34 +0000
Subject: Re: email templating system
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-198634@lists.php.net to get a copy of this message
adwinwijaya wrote:
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);
$message = $email->fetch('/templates/email.tpl'); mail($to,$subject,$message); -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com

« previous php.general (#198634) next »