Re[2]: [PHP] email templating system
| From: | adwinwijaya | Date: | Tue, 05 Oct 2004 01:46:47 +0000 |
| Subject: | Re[2]: [PHP] email templating system | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-198635@lists.php.net to get a copy of this message | ||
Hello John,
Tuesday, October 5, 2004, 11:43:34 AM, you wrote:
JH> X-Apparently-To: adwinwijaya@yahoo.com.au 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@lists.php.net>
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@lists.php.net; run by ezmlm
JH> Precedence: bulk
JH> list-help: <mailto:php-general-help@lists.php.net>
JH> list-unsubscribe: <mailto:php-general-unsubscribe@lists.php.net|mÔ:4—³ùD
JH> će.£>
JH> list-post: <mailto:php-general@lists.php.net>
JH> Delivered-To: mailing list php-general@lists.php.net
JH> Received: (qmail 77146 invoked by uid 1010); 5 Oct 2004 01:44:21 -0000
JH> Delivered-To: ezmlm-scan-php-general@lists.php.net
JH> Delivered-To: ezmlm-php-general@lists.php.net
JH> X-Ironport-AV: i="3.85,122,1094443200";
JH> d="scan'208"; a="380869305:sNHT13028200"
JH> Message-ID: <4161FC46.3020708@charter.net>
JH> Date: Mon, 04 Oct 2004 21:43:34 -0400
JH> From: John Holmes <holmes072000@charter.net>
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@yahoo.com.au>
JH> CC: php-general@lists.php.net
JH> References: <1494044433.20041005113555@yahoo.com.au>
JH> In-Reply-To: <1494044433.20041005113555@yahoo.com.au>
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