Here is what I use: In the Application.cfm: <!--- Turn on error handling and turn off debugging code for users ---> <cfif REQUEST.mode IS "normal"> <!--- Error handling ---> <cferror type="exception" template="error.cfm" mailto="[EMAIL PROTECTED]"> <cfsetting showdebugoutput="no"> </cfif>
<!--- error.cfm CONTENTS ---> <cfoutput> <h1>We apologize!</h1><p> You've encountered an error. <form action="error_submit.cfm" method="post"> <table border=0 cellpadding=0 cellspacing=0> <tr> <td valign="top">Your Email:</td> <td><img src="/images/spacer.gif" height=1 width=10 border=0></td> <td valign="top"><input type="text" name="emailfrom" size="20"></td> </tr> <tr> <td valign="top">Describe what you were trying to do:</td> <td><img src="/images/spacer.gif" height=1 width=10 border=0></td> <td valign="top"><textarea name="description" cols="30" rows="4" wrap="virtual"></textarea></td> </tr> <tr> <td>Notify you when fixed?:</td> <td><img src="/images/spacer.gif" height=1 width=10 border=0></td> <td valign="top"><input type="radio" value="yes" name="notify" checked>Yes <input type="radio" name="notify" value="no">No</td> </tr> <tr> <td><img src="/images/spacer.gif" height=10 width=10 border=0></td> </tr> <tr> <td colspan=3> <input type="hidden" name="diagnostics" value="#HTMLEditFormat(error.diagnostics)#"> <input type="hidden" name="dateTime" value="#error.dateTime#"> <input type="hidden" name="browser" value="#error.browser#"> <input type="hidden" name="template" value="#error.template#"> <input type="hidden" name="remoteAddress" value="#error.remoteAddress#"> <input type="submit" name="formSubmit" value="Notify Webmaster"> </td> </tr> </table> </form> </cfoutput> - Note that I allow the user to choose whether or not to submit the error. This does a pretty good job of preventing multiple notifications for the same error. (The average user will try the page again, and choose not to re-submit the error.) <!--- error_submit.cfm CONTENTS ---> <cfif isDefined("FORM.formSubmit")> <cfmail [EMAIL PROTECTED] from="[EMAIL PROTECTED]" subject="ERROR on yourdomain"> DATE: #FORM.dateTime# EMAIL: #FORM.emailFrom# NOTIFY: #FORM.notify# DESCRIPTION: #FORM.description# TEMPLATE: #FORM.template# DIAGNOSTICS: #FORM.diagnostics# BROWSER: #FORM.browser# REMOTE ADDRESS: #FORM.remoteAddress# </cfmail> </cfif> </cfsilent> <h1>Thank You</h1><p> Your help is appreciated. HTH! Sharon ----- Original Message ----- From: "Jon Block" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Thursday, May 16, 2002 12:48 PM Subject: Anybody have a nice CFERROR page for me? > Anybody have a really nice CFERROR page that mails the site administrator > all of the error information plus a listing of the variables and database > queries etc? > > Thanks... > > ______________________________________________________________________ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists