Re[2]: email templating system

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

 



Hello John,

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

JH> X-Apparently-To: adwinwijaya@xxxxxxxxxxxx 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> <php-general-return-198634-adwinwijaya=yahoo.com.au@xxxxxxxxxxxxx>
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 php-general-help@xxxxxxxxxxxxx; run by ezmlm
JH> Precedence: bulk
JH> list-help: <mailto:php-general-help@xxxxxxxxxxxxx>
JH> list-unsubscribe: <mailto:php-general-unsubscribe@xxxxxxxxxxxxx>
JH> list-post: <mailto:php-general@xxxxxxxxxxxxx>
JH> Delivered-To: mailing list php-general@xxxxxxxxxxxxx
JH> Received: (qmail 77146 invoked by uid 1010); 5 Oct 2004 01:44:21 -0000
JH> Delivered-To: ezmlm-scan-php-general@xxxxxxxxxxxxx
JH> Delivered-To: ezmlm-php-general@xxxxxxxxxxxxx
JH> X-Ironport-AV: i="3.85,122,1094443200"; 
JH>    d="scan'208"; a="380869305:sNHT13028200"
JH> Message-ID: <4161FC46.3020708@xxxxxxxxxxx>
JH> Date: Mon, 04 Oct 2004 21:43:34 -0400
JH> From: John Holmes <holmes072000@xxxxxxxxxxx>
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 <adwinwijaya@xxxxxxxxxxxx>
JH> CC: php-general@xxxxxxxxxxxxx
JH> References: <1494044433.20041005113555@xxxxxxxxxxxx>
JH> In-Reply-To: <1494044433.20041005113555@xxxxxxxxxxxx>
JH> Content-Type: text/plain; charset=windows-1252; format=flowed
JH> Content-Transfer-Encoding: 8bit
JH> Subject: Re:  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


[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