Re: [SMARTY] sending emails using my smarty templates
| From: | Jochem Maas | Date: | Fri, 21 Jan 2005 14:27:13 +0000 |
| Subject: | Re: [SMARTY] sending emails using my smarty templates | ||
| References: | 1 2 3 4 5 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-12183@lists.php.net to get a copy of this message | ||
Abdul-Wahid Paterson wrote:
once you have found the images you also have to change the src attribs AND attach the image. I would recommend that you use phpmailer. create a subclass that filters the body before sending and does the replacement as well as the attachment - this way you keep all the 'magic' in one place. here is a link to the phpmailer docs: http://phpmailer.sourceforge.net/tutorial.html#3.3 good luck :-)why not just fetch() the output of the template and stick that in a mail (using whatever mail class/function/wrapper you have/use) rather than display()ing the output?Yes, that is what I am planning. The only thing though is that I will need to filter the output to find the images as my specification says that images should be included to in the email and not linked to from the web-server.
Abdul-Wahid