Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: oops, left in my email

...

Code Block
xml
xml
		<cfset var machineName = createObject("java", "java.net.InetAddress").localhost.getHostName() />
		<cfif machinename contains("<yourservername>")>
		  <cfsavecontent variable="errordump">
	            <cfoutput>
	               <h3>Error Overview</h3>
	               <pre>
	               Machine:   #variables.machineName#
	               Message:   #arguments.exception.Message#
	               Browser:   #cgi.HTTP_USER_AGENT#
	               DateTime:   #now()#
	               Host:      #cgi.HTTP_HOST#
	               HTTPReferer:   #cgi.HTTP_Referer#
	               QueryString:   #cgi.Query_String#
	               RemoteAddress:   #cgi.Remote_Addr#
	               </pre>
	            
	               <h3>Root Cause</h3>
	               <cfdump var="#arguments.exception#" label="Error Diagnostics">
	            </cfoutput>
	         </cfsavecontent>
			<cfmail from="info@batterytex.com<validemail>" to="mailme@geodesicgrafx.com<validemail>" subject="ERROR - batterytex.com<sitename>" type="html">
			<cfoutput>
                          #errordump#
                        </cfoutput>
			</cfmail>
		<cfelse>
			<cfset super.OnError(argumentCollection=arguments) />
		</cfif>