CSS + CFMail
A came across the dumb little trick a while back, and wanted to share this.
I like to make the mail sent from an application look like it's part of the application, but often the step is overlooked during the development process. However by using <cfinclude> and CSS, this can be accomplished:
<style type="text/css">
<cfinclude template="[path to CSS for site]">
</style>
[content goes here.]
</cfmail>
Granted, you have to make sure that your CSS not huge, or this becomes inefficient.



Posted by: Steve Glachan at October 10, 2007 1:42 AM