Hello John,

Tuesday, October 5, 2004, 11:43:34 AM, you wrote:

JH> X-Apparently-To: [EMAIL PROTECTED] via
JH> 216.109.117.233; Mon, 04 Oct 2004 18:44:39 -0700
JH> X-Originating-IP: [216.92.131.4]
JH> Return-Path:
JH> <[EMAIL PROTECTED]>
JH> Received: from 216.92.131.4  (HELO pb1.pair.com) (216.92.131.4)
JH>   by mta127.mail.sc5.yahoo.com with SMTP; Mon, 04 Oct 2004 18:44:39 -0700
JH> Received: (qmail 77197 invoked by uid 1010); 5 Oct 2004 01:44:21 -0000
JH> Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
JH> Precedence: bulk
JH> list-help: <mailto:[EMAIL PROTECTED]>
JH> list-unsubscribe: <mailto:[EMAIL PROTECTED]>
JH> list-post: <mailto:[EMAIL PROTECTED]>
JH> Delivered-To: mailing list [EMAIL PROTECTED]
JH> Received: (qmail 77146 invoked by uid 1010); 5 Oct 2004 01:44:21 -0000
JH> Delivered-To: [EMAIL PROTECTED]
JH> Delivered-To: [EMAIL PROTECTED]
JH> X-Ironport-AV: i="3.85,122,1094443200"; 
JH>    d="scan'208"; a="380869305:sNHT13028200"
JH> Message-ID: <[EMAIL PROTECTED]>
JH> Date: Mon, 04 Oct 2004 21:43:34 -0400
JH> From: John Holmes <[EMAIL PROTECTED]>
JH> User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803)
JH> X-Accept-Language: en-us, en
JH> MIME-Version: 1.0
JH> To: adwinwijaya <[EMAIL PROTECTED]>
JH> CC: [EMAIL PROTECTED]
JH> References: <[EMAIL PROTECTED]>
JH> In-Reply-To: <[EMAIL PROTECTED]>
JH> Content-Type: text/plain; charset=windows-1252; format=flowed
JH> Content-Transfer-Encoding: 8bit
JH> Subject: Re: [PHP] email templating system

JH> 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');
JH> mail($to,$subject,$message);

no, This is not what I mean. I know about mail() function.
I just want to create email, but I want it like smarty, have if, for
etc in the email template.



-- 
Best regards,
adwin

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

Reply via email to