Is it acceptable to make include calls from within a cfmail tag? Here's a code snippet...
<cftry> <cfmail to="#form.email#" from="#form.my_email#" subject="#form.subject#" cc="#form.cc_email#" timeout=1000 type="HTML"> <cfinclude template="email_header.cfm"> <cfinclude template="#bodyInclude#"> <cfinclude template="email_footer.cfm"> <cfmailparam name="Reply-To" value="#form.my_email#"> </cfmail> <cfcatch type="Any"> <span class="error"> The email was not sent properly, please try again.<br> <a href="javascript:document.history.back();">Go Back</a><br> <cfoutput>#cfcatch.detail#</cfoutput><Br> </span> <cfmodule template="email_template_popup.cfm"> <cfabort> </cfcatch> </cftry> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4