RE: CFmail inside of CF error page

2002-09-18 Thread Mark Stephenson - Evolution Internet

I have a few sites that do this...

In your application.cfm file put something like

cfapplication name=Builda
   clientmanagement=Yes
   sessionmanagement=Yes
   setclientcookies=Yes
!---

cferror type=REQUEST template=ALLERRORS.cfm
cferror type=EXCEPTION template=ALLERRORS.cfm
cferror type=MONITOR template=ALLERRORS.cfm
cferror type=VALIDATION template=ALLERRORS.cfm

---

Then when an error occurs the ALLERRORS.cfm page runs.  Put whatever you
like in this

Mark Stephenson
New Media Director
Evolution Internet
T: 0870 757 1631
F: 0870 757 1632
W: www.evolutioninternet.co.uk
E: [EMAIL PROTECTED]


This email, together with any attachments, is for the exclusive and
confidential use of the addressee(s).  Any other distribution, use or
reproduction without the sender's prior consent is unauthorised and strictly
prohibited.  If you have received this message in error, please
notify the sender by email immediately and delete the message from your
computer without making any copies.




-Original Message-
From: Chad [mailto:[EMAIL PROTECTED]]
Sent: 18 September 2002 14:44
To: CF-Talk
Subject: CFmail inside of CF error page


I am wondering if there is a way to put a CFMail inside of the error
page that CF generates?

That way we can be notified if an error occurs on the web site, and
email the exact error.

Is the error page a CF template?  Is it encrypted?

We tried wrapping all of the pages with cftry/cfcatch in
application.cfm, and onendrequest.com, but CF does not like the tag
broken up like that.


__
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
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CFmail inside of CF error page

2002-09-18 Thread Ian Lurie

Hi Chad,

This works well for us in CF 5. Just make absolutely sure that this code is
error free after you edit it - otherwise it loops and getting 2,000 error
e-mails is no fun :) :

cfset errorto = your e-mail here
cfset errorfrom = replyto here
cfset errorsubject = DB error
cfset errortourl = errortemplate.html

cfmail to=#errorto# from=#errorfrom# subject=#errorsubject#
type=HTML
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
html
head
titleDessy - After Six/title
/head
body
Diagnostics: #error.diagnostics#br
br
Date: #error.dateTime#br
br
Browser: #error.browser#
br
Remote Address: #error.remoteAddress#br
br
Referrer: #error.HTTPReferer#
br
br
Template: #error.template#
br
br
Query String: #error.queryString#
/body
/html
/cfmail

cflocation url=#errortourl#

-Original Message-
From: Chad [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 18, 2002 6:44 AM
To: CF-Talk
Subject: CFmail inside of CF error page


I am wondering if there is a way to put a CFMail inside of the error
page that CF generates?

That way we can be notified if an error occurs on the web site, and
email the exact error.

Is the error page a CF template?  Is it encrypted?

We tried wrapping all of the pages with cftry/cfcatch in
application.cfm, and onendrequest.com, but CF does not like the tag
broken up like that.


__
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CFmail inside of CF error page

2002-09-18 Thread Thomas Chiverton

 This works well for us in CF 5. Just make absolutely sure that 
 this code is
 error free after you edit it - otherwise it loops and getting 2,000 error
 e-mails is no fun :) :

Just add
cfif cgi.CF_TEMPLATE_PATH does not contain error.cfm
to the top and a /cfif to the bottom :-)


__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CFmail inside of CF error page

2002-09-18 Thread Chad

I wondered how the code ran.  :)



 -Original Message-
 From: Thomas Chiverton [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, September 18, 2002 9:09 AM
 To: CF-Talk
 Subject: RE: CFmail inside of CF error page
 
  This works well for us in CF 5. Just make absolutely sure that
  this code is
  error free after you edit it - otherwise it loops and getting 2,000
 error
  e-mails is no fun :) :
 
 Just add
 cfif cgi.CF_TEMPLATE_PATH does not contain error.cfm
 to the top and a /cfif to the bottom :-)
 
 
 
__
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CFmail inside of CF error page

2002-09-18 Thread Thomas Chiverton

 I wondered how the code ran.  :)
  Just add
  cfif cgi.CF_TEMPLATE_PATH does not contain error.cfm

Of course, use cgi.http_referer if you don't cfinclude but cflocate your
error pages ;-)


__
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CFmail inside of CF error page

2002-09-18 Thread Ian Lurie

Wow. Sometimes it's staring you right in the face...

Thanks for the help!

-Original Message-
From: Chad [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 18, 2002 7:17 AM
To: CF-Talk
Subject: RE: CFmail inside of CF error page


I wondered how the code ran.  :)



 -Original Message-
 From: Thomas Chiverton [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, September 18, 2002 9:09 AM
 To: CF-Talk
 Subject: RE: CFmail inside of CF error page

  This works well for us in CF 5. Just make absolutely sure that
  this code is
  error free after you edit it - otherwise it loops and getting 2,000
 error
  e-mails is no fun :) :

 Just add
 cfif cgi.CF_TEMPLATE_PATH does not contain error.cfm
 to the top and a /cfif to the bottom :-)




__
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CFmail inside of CF error page

2002-09-18 Thread Chad

How do you send the email?  I am not sure if this is a MX thing, but the
ALLERRORS.cfm page in your example cannot run any CF code.  It ignores
tags like CFMail.



 -Original Message-
 From: Mark Stephenson - Evolution Internet
 [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, September 18, 2002 8:19 AM
 To: CF-Talk
 Subject: RE: CFmail inside of CF error page
 
 I have a few sites that do this...
 
 In your application.cfm file put something like
 
 cfapplication name=Builda
clientmanagement=Yes
sessionmanagement=Yes
setclientcookies=Yes
 !---
 
 cferror type=REQUEST template=ALLERRORS.cfm
 cferror type=EXCEPTION template=ALLERRORS.cfm
 cferror type=MONITOR template=ALLERRORS.cfm
 cferror type=VALIDATION template=ALLERRORS.cfm
 
 ---
 
 Then when an error occurs the ALLERRORS.cfm page runs.  Put whatever
you
 like in this
 
 Mark Stephenson
 New Media Director
 Evolution Internet
 T: 0870 757 1631
 F: 0870 757 1632
 W: www.evolutioninternet.co.uk
 E: [EMAIL PROTECTED]
 
 
 This email, together with any attachments, is for the exclusive and
 confidential use of the addressee(s).  Any other distribution, use or
 reproduction without the sender's prior consent is unauthorised and
 strictly
 prohibited.  If you have received this message in error, please
 notify the sender by email immediately and delete the message from
your
 computer without making any copies.
 
 
 
 
 -Original Message-
 From: Chad [mailto:[EMAIL PROTECTED]]
 Sent: 18 September 2002 14:44
 To: CF-Talk
 Subject: CFmail inside of CF error page
 
 
 I am wondering if there is a way to put a CFMail inside of the error
 page that CF generates?
 
 That way we can be notified if an error occurs on the web site, and
 email the exact error.
 
 Is the error page a CF template?  Is it encrypted?
 
 We tried wrapping all of the pages with cftry/cfcatch in
 application.cfm, and onendrequest.com, but CF does not like the tag
 broken up like that.
 
 
 
__
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
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CFmail inside of CF error page

2002-09-18 Thread Mark Stephenson - Evolution Internet

Erm... I wrote the sites when using 4.5... Now using 5...  I'll test see if
it still works!!!

Does it ignore CFINCLUDE???

Mark Stephenson
New Media Director
Evolution Internet
T: 0870 757 1631
F: 0870 757 1632
W: www.evolutioninternet.co.uk
E: [EMAIL PROTECTED]


This email, together with any attachments, is for the exclusive and
confidential use of the addressee(s).  Any other distribution, use or
reproduction without the sender's prior consent is unauthorised and strictly
prohibited.  If you have received this message in error, please
notify the sender by email immediately and delete the message from your
computer without making any copies.




-Original Message-
From: Chad [mailto:[EMAIL PROTECTED]]
Sent: 18 September 2002 16:13
To: CF-Talk
Subject: RE: CFmail inside of CF error page


How do you send the email?  I am not sure if this is a MX thing, but the
ALLERRORS.cfm page in your example cannot run any CF code.  It ignores
tags like CFMail.



 -Original Message-
 From: Mark Stephenson - Evolution Internet
 [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, September 18, 2002 8:19 AM
 To: CF-Talk
 Subject: RE: CFmail inside of CF error page

 I have a few sites that do this...

 In your application.cfm file put something like

 cfapplication name=Builda
clientmanagement=Yes
sessionmanagement=Yes
setclientcookies=Yes
 !---

 cferror type=REQUEST template=ALLERRORS.cfm
 cferror type=EXCEPTION template=ALLERRORS.cfm
 cferror type=MONITOR template=ALLERRORS.cfm
 cferror type=VALIDATION template=ALLERRORS.cfm

 ---

 Then when an error occurs the ALLERRORS.cfm page runs.  Put whatever
you
 like in this

 Mark Stephenson
 New Media Director
 Evolution Internet
 T: 0870 757 1631
 F: 0870 757 1632
 W: www.evolutioninternet.co.uk
 E: [EMAIL PROTECTED]


 This email, together with any attachments, is for the exclusive and
 confidential use of the addressee(s).  Any other distribution, use or
 reproduction without the sender's prior consent is unauthorised and
 strictly
 prohibited.  If you have received this message in error, please
 notify the sender by email immediately and delete the message from
your
 computer without making any copies.




 -Original Message-
 From: Chad [mailto:[EMAIL PROTECTED]]
 Sent: 18 September 2002 14:44
 To: CF-Talk
 Subject: CFmail inside of CF error page


 I am wondering if there is a way to put a CFMail inside of the error
 page that CF generates?

 That way we can be notified if an error occurs on the web site, and
 email the exact error.

 Is the error page a CF template?  Is it encrypted?

 We tried wrapping all of the pages with cftry/cfcatch in
 application.cfm, and onendrequest.com, but CF does not like the tag
 broken up like that.




__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CFmail inside of CF error page

2002-09-18 Thread Chad

Actually I started poking around the MX directories and found this
folder:
\CFusionMX\wwwroot\WEB-INF\exception

It appears that all the error templates are open source.  I going to
start playing with them and see if I can get the results I want.





 -Original Message-
 From: Chad [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, September 18, 2002 10:13 AM
 To: CF-Talk
 Subject: RE: CFmail inside of CF error page
 
 How do you send the email?  I am not sure if this is a MX thing, but
the
 ALLERRORS.cfm page in your example cannot run any CF code.  It ignores
 tags like CFMail.
 
 
 
  -Original Message-
  From: Mark Stephenson - Evolution Internet
  [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, September 18, 2002 8:19 AM
  To: CF-Talk
  Subject: RE: CFmail inside of CF error page
 
  I have a few sites that do this...
 
  In your application.cfm file put something like
 
  cfapplication name=Builda
 clientmanagement=Yes
 sessionmanagement=Yes
 setclientcookies=Yes
  !---
 
  cferror type=REQUEST template=ALLERRORS.cfm
  cferror type=EXCEPTION template=ALLERRORS.cfm
  cferror type=MONITOR template=ALLERRORS.cfm
  cferror type=VALIDATION template=ALLERRORS.cfm
 
  ---
 
  Then when an error occurs the ALLERRORS.cfm page runs.  Put whatever
 you
  like in this
 
  Mark Stephenson
  New Media Director
  Evolution Internet
  T: 0870 757 1631
  F: 0870 757 1632
  W: www.evolutioninternet.co.uk
  E: [EMAIL PROTECTED]
 
 
  This email, together with any attachments, is for the exclusive and
  confidential use of the addressee(s).  Any other distribution, use
or
  reproduction without the sender's prior consent is unauthorised and
  strictly
  prohibited.  If you have received this message in error, please
  notify the sender by email immediately and delete the message from
 your
  computer without making any copies.
 
 
 
 
  -Original Message-
  From: Chad [mailto:[EMAIL PROTECTED]]
  Sent: 18 September 2002 14:44
  To: CF-Talk
  Subject: CFmail inside of CF error page
 
 
  I am wondering if there is a way to put a CFMail inside of the error
  page that CF generates?
 
  That way we can be notified if an error occurs on the web site, and
  email the exact error.
 
  Is the error page a CF template?  Is it encrypted?
 
  We tried wrapping all of the pages with cftry/cfcatch in
  application.cfm, and onendrequest.com, but CF does not like the tag
  broken up like that.
 
 
 
 
__
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
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists