Re: [SMARTY] send temlate-output as mail?
| From: | Monte Ohrt | Date: | Fri, 10 Jan 2003 17:34:23 +0000 |
| Subject: | Re: [SMARTY] send temlate-output as mail? | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-7118@lists.php.net to get a copy of this message | ||
Certainly, we use smarty for e-mail generation quite a bit. There are
also some functions and modifiers to help format your e-mail messages.
http://smarty.php.net/manual/en/language.function.textformat.php
http://smarty.php.net/manual/en/language.modifier.wordwrap.php
http://smarty.php.net/manual/en/language.modifier.indent.php
$email = $smarty-fetch('email.tpl');
// send $email to whomever
On Fri, 2003-01-10 at 11:00, akorthaus@web.de wrote:
> Hi!
>
> I often have emails to send in my PHP-pages, but I always want to use
> variables in it, like $name, ..., or I use loops, to generate some lines
> from database(orders...).
>
> Is it possilble to use smarty also for these mails, I think about the same
> usage as HTML-templates, but without sending the output to a browser, it
> should be send per e-mail.
> Does someone know a possibility to do this, or what else to do with my
> personalized mails?
>
> Thank You!
>
> regards
> Andreas
--
Monte Ohrt <monte@ispi.net>