Thanks everyone for your help and I like your photo Doug!

I got it working now! :)

I had a few problems because first of all i wasn't using the line  
below, instead i had the cftry/cfcatch on my main page and it wasn't  
cfmailing:

<cferror type="exception" template="request_err.cfm">

But then i put it on the top of my main page and all is good.

Should the type be 'exception'?  Will that catch all?

The CFERROR, could i put that in my APPLICATION.CFM or is that  
dangerous?

Thanks,

Saturday


Then on my other page, request_err.cfm I have:


On 15 Jul 2005, at 14:50, Raymond Camden wrote:

> It is meant to be use in an error template. Check out the doc for
> <cferror>, which lets you specify a page to run when an error occurs.
>
> On 7/15/05, Saturday (Stuart Kidd) <[EMAIL PROTECTED]> wrote:
>
>> 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>
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211983
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