Thanks for that.

Can I ask why it's not a good idea to use CFTRY/CFCATCH?

Whereabouts do i put the CFMAIL script below?  It comes up with an  
error saying that TYPE is undefined in ERROR?

Thanks,

Saturday


On 15 Jul 2005, at 14:06, Michael Dinowitz wrote:

> Sorry, forgot to mention that I use this code in a sitewide error  
> handling template so every error on the site gets emailed to me,  
> even ones in a CFTRY/CFCATCH. On a related note, don't use CFTRY/ 
> CFCATCH to handle known errors. Handle the error directly!
>
>
>> <cfmail to="" from="" subject="Error: #Error.Type#" type="HTML">
>>     <CFDUMP var="#error#" label="error">
>>     <CFDUMP var="#form#" label="form">
>>     <CFDUMP var="#url#" label="url">
>>     <CFDUMP var="#CGI#" label="CGI">
>>     <CFIF IsDefined('session')><CFDUMP var="#session#"  
>> label="session"></CFIF>
>>     <CFIF IsDefined('application')><CFDUMP var="#application#"  
>> label="application"></CFIF>
>> </cfmail>
>>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211975
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to