This might help you out, but I've just ripped it out of an application so you might need to wade through it a little.
Put this in your Application.cfm file: <cferror type="EXCEPTION" exception="ANY" template="/errors/exception.cfm" mailto="[EMAIL PROTECTED]"> then put this in /errors/exception.cfm <cfmail to="[EMAIL PROTECTED]" from="My web site" subject="An e-mail from My web site" type="HTML"><html> <head> <title>An error has occurred</title> </head> <body> <p>An error has occurred on My web site</p> <hr> <p>Error:</p> <cfdump var="#Error#"> <p>Variables:</p> <cfdump var="#Variables#"> <p>CGI:</p> <cfdump var="#CGI#"> <p>File:</p> <cfdump var="#File#"> <p>URL:</p> <cfdump var="#URL#"> <p>Form:</p> <cfdump var="#Form#"> <p>Cookie:</p> <cfdump var="#Cookie#"> <p>Client:</p> <cfdump var="#Client#"> <p>Server:</p> <cfdump var="#Server#"> <p>Application:</p> <cfdump var="#Application#"> <p>Session:</p> <cfdump var="#Session#"> <p>Request:</p> <cfdump var="#Request#"> </body> </html></cfmail> <!--- Put your header cfinclude or cfmodule here ---> <cfoutput> <p>Unfortunately an error has occurred on this web site.</p> <p>The error has now been logged and the web site developers notified.</p> <p>We are sorry for the inconvenience this has caused. If you would like to contact the web site technical support team, please send an e-mail to <a href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</a>.</p> <p>Please <a href="/">return to the web site</a>.</p> </cfoutput> <!--- Put your footer cfinclude or cfmodule here ---> -- Aidan Whitehall <[EMAIL PROTECTED]> Macromedia ColdFusion Developer Fairbanks Environmental +44 (0)1695 51775 ________________________________________________________________________ This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________ -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]
