you can't put cfm commands on the cferror page, but you can set the error
page to submit a form when it loads...
post the form to another page that has your cfmail and whatever error
message you wish to display.


<script language="JavaScript" type="text/javascript">
<!--
        function submitform(){
                document.ErrorSend.submit();
        }
//-->
</script>
</head>
<body OnLoad="submitform();">
<form action="error_send.cfm" method="post" name="ErrorSend">
<input type="hidden" name="Error.Diagnostics" value="#Error.Diagnostics#">
<input type="hidden" name="Error.MailTo" value="#Error.MailTo#">
<input type="hidden" name="Error.DateTime" value="#Error.DateTime#">
<input type="hidden" name="Error.Browser" value="#Error.Browser#">
<input type="hidden" name="Error.RemoteAddress"
value="#Error.RemoteAddress#">
<input type="hidden" name="Error.HTTPReferer" value="#Error.HTTPReferer#">
<input type="hidden" name="Error.Template" value="#Error.Template#">
<input type="hidden" name="Error.QueryString" value="#Error.QueryString#">
</form>




-----Original Message-----
From: Gavin Myers [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 19, 2000 12:09 PM
To: CF-Talk
Subject: cferror


can you put cfm commands on a cferror page?

application.cfm:
<cferror type="REQUEST" template="error.cfm"
mailto="[EMAIL PROTECTED]">

error.cfm
<cfmail to = "gavin" subject =
"ERROR!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!">
AN ERROR HAS OCCURED AT:
#error.datetime#
#error.remoteaddress#
#error.browser#
#error.template#
#error.querystring#
</cfmail>

if i do this, the contents of the cfmail just show up and doesnt send out an
e-mail to me


thanks,
Gavin
----------------------------------------------------------------------------
--------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a
message with 'unsubscribe' in the body to [EMAIL PROTECTED]
------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message 
with 'unsubscribe' in the body to [EMAIL PROTECTED]

Reply via email to