---------- Original Message ----------------------------------
From: "Adam Reynolds" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Date:  Tue, 21 Jan 2003 18:17:12 -0000

>Can somebody explain to my why cfmail does not work within an error
>template?

Using type="Request" doesn't allow for ANY CF processing within that page (so, it's 
basically plain old static HTML/JavaScript).

If you use type="Exception", then you can do CF processing (including CFMAIL).

However, I'd recommend doing both:

<!--- Do CF-enabled error message --->
cferror type="exception" template="error.cfm" exception="any">

<!--- Do non-CF-enabled error message, in case the other one fails as well --->
cferror type="request" template="error.html" exception="any">


(The reason to do both is that sometimes the "exception" error page might generate an 
error itself, so, the fallback is to do the "request" error page.)

Scott
--------------------------------
Scott Brady
http://www.scottbrady.net/
 
             
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to