You can do the following, if you have not tried it already:
1) Open CF Admin
2) Go to "Server Settings --> Settings"
3) For "Site-wide Error Handler", specify a CF error template relative to your
webroot. For example - "/handle_error.cfm"
4) All errors will now be handled by this template [<cfmail> logic can go here]
<!--- generate_error.cfm [will throw an error]--->
<cfset a = "10>
<!--- handle_error.cfm [will handle the error]--->
<cfmail from="Admin" to="<<some_emailAddress>>" subject="Error" type="html">
<cfdump var="#Error#">
</cfmail>
Thanks,
Vamsee
Macromedia Inc.
> I've got a question, maybe you can help me out? Or at least give me
> some direction. I'm trying to setup something that will send me an
> email everytime someone on a particular website gets an error, no
> matter what type. Do you know any way to do that?
>
> I set up this code in the application.cfm file, along with their
> corresponding pages, in hopes that it would work:
>
> <!--- Display a custom message for REQUEST errors --->
> <cferror type="request" template="errorRequest.cfm"
> mailto="#errorEmail#">
>
> <!--- Display a custom message for EXCEPTION errors --->
> <cferror type="exception" template="errorException.cfm"
> mailto="#errorEmail#" exception="any">
>
> But the most common errors are request errors and because you can't
> use any CF on that page it doesn't send me an email.
>
> I've looked all over the web and everyone says the same thing, the
> same thing I have up above. Can you anyone
help?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49
Message: http://www.houseoffusion.com/lists.cfm/link=i:15:1351
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54