Hi Chad,

This works well for us in CF 5. Just make absolutely sure that this code is
error free after you edit it - otherwise it loops and getting 2,000 error
e-mails is no fun :) :

<cfset errorto = "your e-mail here">
<cfset errorfrom = "replyto here">
<cfset errorsubject = "DB error">
<cfset errortourl = "errortemplate.html">

<cfmail to="#errorto#" from="#errorfrom#" subject="#errorsubject#"
type="HTML">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Dessy - After Six</title>
</head>
<body>
Diagnostics: #error.diagnostics#<br>
<br>
Date: #error.dateTime#<br>
<br>
Browser: #error.browser#
<br>
Remote Address: #error.remoteAddress#<br>
<br>
Referrer: #error.HTTPReferer#
<br>
<br>
Template: #error.template#
<br>
<br>
Query String: #error.queryString#
</body>
</html>
</cfmail>

<cflocation url="#errortourl#">

-----Original Message-----
From: Chad [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 18, 2002 6:44 AM
To: CF-Talk
Subject: CFmail inside of CF error page


I am wondering if there is a way to put a CFMail inside of the error
page that CF generates?

That way we can be notified if an error occurs on the web site, and
email the exact error.

Is the error page a CF template?  Is it encrypted?

We tried wrapping all of the pages with cftry/cfcatch in
application.cfm, and onendrequest.com, but CF does not like the tag
broken up like that.


______________________________________________________________________
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/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to