Re: [SMARTY] send smarty-display as email

From: Date: Wed, 05 Oct 2005 16:43:00 +0000
Subject: Re: [SMARTY] send smarty-display as email
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-13074@lists.php.net to get a copy of this message
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/

« previous php.smarty.general (#13074) next »