Try something like this in your error_page.cfm file:
<cfparam name="Error.MailTo" default="[EMAIL PROTECTED]">
<cfif Error.MailTo NEQ "">
<cfmail to="#Error.MailTo#" from="[EMAIL PROTECTED]"
subject="Error on page #Error.Template#" type="html">
<p>Error Date/Time: #Error.DateTime#
<p>User's Browser: #Error.Browser#
<p>URL Parameters: #Error.QueryString#
<p>Previous Page: #Error.HTTPReferer#
<hr>
<p>#Error.Diagnostics#
</cfmail>
</cfif>
==
Peter Tilbrook
Project Officer
Strategic Development
Australian Building Codes Board
Department of Industry, Tourism and Resources
GPO Box 9839
CANBERRA ACT 2601
AUSTRALIA
E-Mail: [EMAIL PROTECTED]
Telephone: (02) 6213 6731
Mobile: 0439 401 823
Facsimile: (02) 6213 7287
-----Original Message-----
From: Tim Laureska [mailto:[EMAIL PROTECTED]]
Sent: Monday, 16 December 2002 1:57 AM
To: CF-Talk
Subject: CFerror
This must be easy but..... if I have reference to an error display page
in the application.cfm file such as:
<cferror type="request" template="error_page.cfm"
mailto="[EMAIL PROTECTED]">
how can I get an email sent to the administrator with the error details?
I tried putting a CFMail tag in the error_page.cfm file, but that
doesn't do it
Tim Laureska
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm