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

-----Original Message-----
From: Larry C. Lyons [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 03, 2001 8:01 AM
To: CF-Talk
Subject: Re: CF Mail Error


Thanks Dain,

I shall give it a try.

larry

Dain Anderson wrote:
> 
> This is a known bug, and there is a fix for it at:
> 
> http://www.allaire.com/Handlers/index.cfm?ID=15821&Method=Full
> 
> Dain Anderson
> Caretaker, CF Comet
> http://www.cfcomet.com/
> 
> ----- Original Message -----
> From: "Larry C. Lyons" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Tuesday, April 03, 2001 10:19 AM
> Subject: CF Mail Error
> 
> > I've just run across this error that I've never seen before. Anyone know
> > what it means and how to correct it?
> >
> > Error Diagnostic Information
> > unknown exception condition
> >
> > TagCFMail::sendMessage
> >
> > The error occurred while processing an element with a general identifier
> > of (CFMAIL), occupying document position (77:1) to (77:147).
> >
> >
> > Date/Time: 04/03/01 10:05:29
> > Browser: Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)
> > Remote Address: 127.0.0.1
> > HTTP Referer: http://127.0.0.1/ACC/carts/index.cfm?fuseaction=Checkout
> >
> > thanks,
> > larry
> > --
> > Larry C. Lyons
> > ColdFusion/Web Developer
> > EBStor.com
> > 8870 Rixlew Lane, Suite 201
> > Manassas, Virginia 20109-3795
> > tel: (703) 393-7930 x253
> > fax: (703) 393-2659
> > http://www.ebstor.com
> > http://www.pacel.com
> > email: [EMAIL PROTECTED]
> >
> > Chaos, panic, and disorder - my work here is done.
> > --
> >
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to