Either: 1. Have a separate file with just the content of the email, including the variables you want replaced, and include it in your cfmail like this:
<cfmail ...> <cfinclude template="myemailtemplate.cfm" /> </cfmail> or: 2. If your template text is in a database, you could generate a temp file on the fly with the template text in it, then include that file as above. I'm not sure what the performance implications of this would be, but you'd have to weigh that against how often the process is called. Alternatively, generate the appropriate flat file whenever the template is updated. But I've also used Dominic's method of replaceing a [variable] token in the template using Replace(). Seb Seb Duggan Web & ColdFusion Developer e: [email protected] t: 07786 333184 w: http://sebduggan.com On 27 Dec 2008, at 13:38, Maya MacDonald wrote: > Seb, > > Thank you for the reply. > > I am not quite sure I am following how I would include this as a > flat file? > > Thanks, > Devin Seb Duggan Web & ColdFusion Developer e: [email protected] t: 07786 333184 w: http://sebduggan.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:317154 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

