In debugging ColdFusion apps, I use the following (in my classical Fusebox circuit index.cfm) to trap errors and email them to me.

Is there a way to do this with cfx_iMSMail instead of CFMAIL? (I want to speed up error emails.)

best, paul

===================
<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>

where

<CFSET REQUEST.ERR_VARS =
"cgi.content_length,cgi.http_accept,cgi.http_referer,cgi.http_user_agent,cgi.path_info,cgi.path_translated,cgi.query_string,cgi.remote_addr,cgi.remote_host,cgi.remote_ident,cgi.remote_user,CGI_SCRIPT_NAME,cgi.server_port,cfcatch.detail,cfcatch.errnumber,cfcatch.lockname,cfcatch.lockoperation,cfcatch.message,cfcatch.missingfilename,cfcatch.nativeerrorcode,cfcatch.sqlstate,cfcatch.type,server.coldfusion.productname,server.coldfusion.productversion,server.os.name,server.os.version,server.os.buildnumber">

==^=======================================================
This list server is Powered by iMS  "The Swiss Army Knife of Mail Servers"
--------------------------------------------------------------------------------------
This list is provided as a free service.  Although we will try to address issues
in a timely manner, support via this list is not guaranteed.  If you require expedited
support then a support contract is required.  Support may be purchased from
http://www.coolfusion.com/commerce.  Details regarding support options may be reviewed
at: http://www.coolfusion.com/SupportOptions.cfm
--------------------------------------------------------------------------------------
To leave this list please complete the form at http://www.coolfusion.com/Support/
Need an iMS Developer license?  Sign up for a free license here:
http://www.coolfusion.com/Developers/
List archives: http://www.mail-archive.com/infusion-email%40eoscape.com/
Note: You are subscribed as [EMAIL PROTECTED]
==^=======================================================




Reply via email to