Sure, it's acceptable.  Just watch out for extraneous whitespace.

--
Mosh Teitelbaum
evoch, LLC
Tel: (301) 942-5378
Fax: (301) 933-3651
Email: [EMAIL PROTECTED]
WWW: http://www.evoch.com/


> -----Original Message-----
> From: Dowdell, Jason G [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 11, 2003 2:15 PM
> To: CF-Talk
> Subject: Includes within cfmail
>
>
> 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
                                

Reply via email to