I've attached some code that Michael Dinowitz sent me and I've modified.
When you improve it, send me copy.
Andy
----- Original Message -----
From: "SHEETS, DAYV (PB)" <[EMAIL PROTECTED]>
To: "CF-Server" <[EMAIL PROTECTED]>
Sent: Tuesday, April 03, 2001 5:21 PM
Subject: Cold Fusion Server 404 Page on IIS
> Hello,
>
> I am attempting to put into effect error handling on my 404 pages so that
it
> emails me (via cfmail). I am using the following code to generate this:
>
> <snip>
>
> <CFSET #address# = "#cgi.remote_addr#">
> <CFSET #host# = "#cgi.remote_host#">
> <CFSET #referer# = "#cgi.http_referer#">
> <CFSET #agent# = "#cgi.http_user_agent#">
> <CFSET #page# = "#cgi.script_name#">
> <CFIF #host# is "">
> <CFSET #host# = "unknown">
> </CFIF>
> <CFIF #referer# is "">
> <CFSET #referer# = "unknown">
> </CFIF>
>
>
> <cfmail
> from="#[EMAIL PROTECTED]#"
> cc="#[EMAIL PROTECTED]#"
> to="#[EMAIL PROTECTED]#"
> subject="404 Error Encountered"
> >
> 404 Error Encountered:
>
> IP: #address#
> Host: #host#
> Referer:
> #referer#
> Agent: #agent#
> page: #page#
> host: #host#
>
> </cfmail>
>
>
> Sorry, the URL <cfoutput>#referer#</cfoutput> either does not exist, or
has
> been removed from our site.
> An email has been send to the Webmaster to inspect this error further.
<br>
>
> </snip>
>
>
> The problem is that I am not receiving everything BUT the referring page.
Is
> there something else I am overlooking/need to be doing?
>
> Thanks in advance for your assistance,
>
> Dayv
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To unsubscribe, send a message to [EMAIL PROTECTED] with
'unsubscribe' in the body or visit the list page at www.houseoffusion.com