Re: sending emails using my smarty templates
| From: | Manuel Lemos | Date: | Sun, 16 Jan 2005 01:21:36 +0000 |
| Subject: | Re: sending emails using my smarty templates | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-12160@lists.php.net to get a copy of this message | ||
Hello,
on 01/14/2005 04:36 PM Abdul-Wahid Paterson said the following:
Would this in theory be possible? Has anyone else a better way of doing it or other suggestions?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. Anyway, to send HTML e-mail from Smarty templates it is not hard. However, if you want to prevent having your messages being trapped by spam filters, you should not send HTML only messages. All text messages must have an alternative text part or else some systems like for instance Hotmail may discard your message. 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: 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