Alternatively you can use a site-wide error handler in CFAdmin to do the same thing.
We use a site-wide handler with a pretty message to the user and it sends email to me at the same time. We also use one for 404 errors that's supposed to catch things like broken images and replace them with a clear gif file. These get databased and then sent in a daily 404 digest so we can clean up everything without getting pounded by 404 messages all day. Joshua Miller Head Programmer / IT Manager Garrison Enterprises Inc. www.garrisonenterprises.net [EMAIL PROTECTED] (704) 569-9044 ext. 254 ************************************************************************ ************* Any views expressed in this message are those of the individual sender, except where the sender states them to be the views of Garrison Enterprises Inc. This e-mail is intended only for the individual or entity to which it is addressed and contains information that is private and confidential. If you are not the intended recipient you are hereby notified that any dissemination, distribution or copying is strictly prohibited. If you have received this e-mail in error please delete it immediately and advise us by return e-mail to [EMAIL PROTECTED] ************************************************************************ ************* -----Original Message----- From: E. Keith Dodd [mailto:[EMAIL PROTECTED] Sent: Thursday, February 27, 2003 1:05 PM To: CF-Talk Subject: Re: Setting up email from CF for errors (was Re: ColdFusion and SMS Messaging) Austin I do the following for being notified of general errors: 1. In application.cfm <CFERROR type="EXCEPTION" template="myErrorPage.cfm"> 2. On myErrorPage.cfm: Basic page stuff with message to user that error has occurred and that the webmaster is being notified of problem. Additionally: A cfmail tag to me (I use HTML so looks better for me to read quickly): including the following in the mail message: An error was recorded on [site name] website: <br /><br /> 1. Error: <br>#CFError.Diagnostics# <hr width="75%"> <ol start="2"> <li>Date/Time: #CFError.DateTime# <li>Template: #CFError.Template# <li>QueryString: #CFError.QueryString# <li>Ref: #CFError.HttpReferer# <li>Browser: #CFError.Browser# <li>Remote: #CFError.RemoteAddress# </ol> Time: #DateFormat(Now(),"m/d/yy")# : #TimeFormat(Now(),"h:mm tt")# User gets a nice message and I get an instant email. I'm sure there are other ways, but this works for me. (Took the above from a cf5 application. I think I use some minor differences in MX, but not at that machine.) Hope this helps. E. Keith Dodd Wings of Eagles Services www.wingserv.com ----- Original Message ----- From: "Austin Govella" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Thursday, February 27, 2003 12:36 PM Subject: Setting up email from CF for errors (was Re: ColdFusion and SMS Messaging) > So. I want CF to email or message me when there's a problem. Is there > a tutorial somewhere on setting up automated email during certain > kinds of errors or conditions on the server? > > -- > Austin Govella > Grafofini > - [This E-mail scanned for viruses by declude AntiVirus Software] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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 Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

