Re: [SMARTY] send smarty-display as email
Maximillian Schwanekamp <[email protected]>
| Newsgroups | gmane.comp.php.smarty.general |
|---|---|
| Message-ID | <[email protected]> |
Holger Wöhle wrote: > Hello, > i am i the need to send html formated emails. > I am using smarty as the display template-system, and so my first thought > was, to use smarty in that case, too! FWIW, We've been successfully using the free PHPMailer[0] with Smarty for about 18 months with absolutely no troubles. We send HTML/Text multipart messages, sometimes with attachments. For each message, we have 3 templates: mymessage_html.tpl, mymessage_txt.tpl, mymessage_subject.tpl. The subject template can be created on the fly, but it's simpler to have an actual template file (see the list's responses to my own question on this in the archives, a few months ago). Use $smarty->fetch() for each of these to assemble the Body, AltBody (text only), and Subject properties of the mailer object. [0] http://phpmailer.sourceforge.net/ -- Max Schwanekamp http://www.neptunewebworks.com/ -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php