Re: problem with using Smarty as a mail template
| From: | Manuel Lemos | Date: | Fri, 02 Apr 2004 19:10:11 +0000 |
| Subject: | Re: problem with using Smarty as a mail template | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-11225@lists.php.net to get a copy of this message | ||
Hello,
On 04/02/2004 12:30 PM, Trish Hartnett wrote:
I have been using Smarty with standard HTML files successfully for a while now. I'm currently trying to use Smarty as a mail template. It works fine, but the formatting new empty lines are being inserted all over the place. For example the template (.tpl) file I'm using looks like: " General Information 1. Where do I log in to access my account? 2. What is my username and password ? " The file produced by Smarty looks like: " General Information 1. Where do I log in to access my account? 2. What is my username and password ? " Is there anyway to get around this problem of insertion of new lines ?This looks like a problem with the mail function. You may want to try this class that has workarounds to some mail function problems. It also comes with an example of how to send personalized messages using Smarty templates: http://www.phpclasses.org/mimemessage -- Regards, Manuel Lemos PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/ PHP Reviews - Reviews of PHP books and other products http://www.phpclasses.org/reviews/ Metastorage - Data object relational mapping layer generator http://www.meta-language.net/metastorage.html