I'm using CF5

Thanks to a posting some years ago, I've used the following error reporting
scheme for a long time:

=====================================
<cfcatch type="any">Our apologies! An internal error occured on our web
server. Our error catcher has reported it to the webmaster.  We'll fix it
as soon as we can.  Please continue. Thank you, [EMAIL PROTECTED]<br>
<cfsetting enablecfoutputonly="Yes"><cfmail to="[EMAIL PROTECTED]"
from="[EMAIL PROTECTED]" subject="Error" type="HTML">
<table>

<cfloop index="err_var" list="#REQUEST.err_vars#" delimiters=",">
  <cftry><tr><td>#err_var#</td><td>#evaluate(err_var)#</td></tr><cfcatch></cfcatch></cftry>
</cfloop>
</table>

</cfmail></cfcatch></cftry>
=================================

I want to change to a different mailer, CFX_iMSMail.  I tried the following
but it does not work:

===============================
<cfcatch type="any">Our apologies! An internal error occured on our web
server. Our error catcher has reported it to the webmaster.  We'll fix it
as soon as we can.  Please continue. Thank you, [EMAIL PROTECTED]<br>
<cfsetting enablecfoutputonly="Yes"><cfset MailBody="<table>">
<cfloop index="err_var" list="#REQUEST.err_vars#" delimiters=",">
<cfset MailBody = MailBody & '<cftry><tr><td>' & err_var & '</td><td>' &
evaluate(err_var) & '</td></tr>' & '<cfcatch></cfcatch></cftry>' >
</cfloop>
<cfset MailBody = MailBody & '</table>' >

<cfx_iMSMail smtpto="[EMAIL PROTECTED]"
header_to="[EMAIL PROTECTED]" header_subject="Missing Link at
SMARTERyellowpages.com" header_from="[EMAIL PROTECTED]"
body="#MailBody#">

</cfcatch></cftry></body></html>
==============================

This throws the following error:

======================
Error resolving parameter CFCATCH.ERRNUMBER

The object ERRNUMBER is not present in the scope named CFCATCH. It is
likely that you have misspelled the name of the object you are trying to
access.
========================

Any suggestions?

best,  paul
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to