Re: [SMARTY] Re: sending emails using my smarty templates

From: Date: Mon, 17 Jan 2005 10:46:20 +0000
Subject: Re: [SMARTY] Re: sending emails using my smarty templates
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-12163@lists.php.net to get a copy of this message
Hi, > Extracting the images to send them in HTML e-mail messages it is not > trivial. It is probably simpler to prepend an HTML <BASE> tag to specify > the base URL and let the receiving mail client resolve the images URL > automatically. Agreed, only it is in my project specification that the images should be inline. > > Here you may find an example of how to compose and send HTML messages > with alternative text parts using Smarty templates to generate the > HTML part and the text alternative part: meta-language.net/metastorage.html Actually, I have used the Pear MIME class for this quite successfully but only for non-Smarty pages. For that though I had to functions; one for normal browse HTML and the second for the email HTML. However, it caused a lot of code duplication and was a pain when I needed to make changes as they changes had to be made in both places. I am thereore hoping that I can find a good method in smarty where updates to the template are easy and changes to the code can be done in just one place. I will give it a bash. Thanks for the advice. ;) Abdul-Wahid

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