Here's the basic idea. You can make it far more complex, but all mechanisms basically boil down to this.
<cftry> ... potentially failing code <cfcatch type="any"> <cfmail to="[EMAIL PROTECTED]" from="[EMAIL PROTECTED]" subject="error" type="html"> #now()#<br /> #cfcatch.type#<br /> #cfcatch.message#<br /> #cfcatch.detail#<br /> </cfmail> </cfcatch> </cftry> --- Barney Boisvert, Senior Development Engineer AudienceCentral [EMAIL PROTECTED] voice : 360.756.8080 x12 fax : 360.647.5351 www.audiencecentral.com > -----Original Message----- > From: Ryan Mitchell [mailto:[EMAIL PROTECTED] > Sent: Friday, June 13, 2003 9:57 AM > To: CF-Talk > Subject: This should be easy > > > Heylo > > Im using a cftry - cfcatch sort of thing for the first time, and I want to > email myself the error message that gets produced... How do you do this? > > TIA, > Ryan > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4