Here's what I use:
<!--- request_err.cfm --->
<HTML>
<HEAD>
<TITLE>Error</TITLE>
<SCRIPT LANGUAGE="JavaScript">
function errorsubmit() {
document.forms[0].submit()
}
</SCRIPT>
</HEAD>
<BODY onLoad="errorsubmit()">
<FORM ACTION="http://www.yoursitenamehere.com/errorhandler.cfm"
METHOD="POST" TARGET="_top">
<INPUT TYPE="hidden" NAME="mailto" VALUE="#error.mailto#">
<INPUT TYPE="hidden" NAME="errmsg" VALUE="#error.diagnostics#">
<INPUT TYPE="hidden" NAME="cfmfile" VALUE="#error.template#">
<INPUT TYPE="hidden" NAME="querystring" VALUE="#error.querystring#">
<INPUT TYPE="hidden" NAME="datetime" VALUE="#error.datetime#">
<INPUT TYPE="hidden" NAME="browser" VALUE="#error.browser#">
<INPUT TYPE="hidden" NAME="httpreferrer" VALUE="#Error.HTTPReferer#">
</FORM>
<h3>Sorry</h3>
<P>An error occurred when you requested this page. The Webmaster has been
notified of this error. We will work to correct the problem and apologize
for the inconvenience.</P>
<!--- end of request_err.cfm --->
Then errorhandler.cfm adds an entry to my project management database,
e-mails me and (between the hours of 7 AM and 11 PM) pages me with the text
of the error that occurred.
Of course on your application.cfm file you will have the entry
<cferror type="REQUEST" template="Request_Err.cfm"
mailto="[EMAIL PROTECTED]">
Jerry Richardson
[EMAIL PROTECTED]
-----Original Message-----
From: Michael Paulsmeyer [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 11, 2000 5:33 PM
To: [EMAIL PROTECTED]
Subject: RE: CFERROR - MailTo
Thanks Jerry,
For those of us who might not know how to create a self-submitting form
using JS could you point us in the right direction?
Mike.
-----Original Message-----
From: Jerry William Richardson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 11, 2000 12:09 PM
To: [EMAIL PROTECTED]
Subject: RE: CFERROR - MailTo
One option is to have your cferror page be a self-submitting (using
javascript) form that takes all the different variables from the error that
are available and submits them to a cfm page that then e-mails you.
It's the long way around the barn. Please note that if you forward these
errors to a pager, they will inevitably only occur at 4:00 AM, cruelly
depriving you of sleep until you die from exhaustion.
Jerry Richardson
[EMAIL PROTECTED]
-----Original Message-----
From: Dave Watts [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 11, 2000 11:00 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: CFERROR - MailTo
> New to the list and I have been having a problem getting the mailto
> attribute in the CFERROR tag to work. I have set and verified the
> mail server in CF Administrator. What else can I look at and/or do?
I could be wrong about what exactly the problem is that you're having, but
my guess is that you fell into the same trap I did when I first used
CFERROR. That is, I thought that when I specified a MAILTO attribute, that
the CFERROR page would send an email to that address. That is not the case.
All setting the MAILTO attribute lets you do is use that attribute's value
as an error variable in the CFERROR page, so that you could do something
like this within that page:
<A HREF="mailto:#Error.MailTo#">Notify system administrator</A>
It took me quite a while to figure that out, as I recall.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
----------------------------------------------------------------------------
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
----------------------------------------------------------------------------
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
----------------------------------------------------------------------------
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.