This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C0AE56.84B133C0
Content-Type: text/plain;
charset="iso-8859-1"
I am trying to use the CFERROR combined with the CFMAIL tag in the error
template to automatically send an email out to an administrator when an
error occurs. I am also trying to suppress the error from displaying in the
error template page for the user to view so that they can just see a generic
message.
Here is my sample code:
Application.cfm
<cferror type="MONITOR" template="appnotavail.cfm"
mailto="[EMAIL PROTECTED]">
appnotavail.cfm
<cfmail to="#error.mailto#" from="[EMAIL PROTECTED]" subject="error
message" type="html">
<B>Error Message:</b>#ERROR.Diagnostics#<br>
</cfmail>
Thank you,
Bill Huamani
732-562-3290 Phone
732-562-3166 Fax
------_=_NextPart_001_01C0AE56.84B133C0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2654.19">
<TITLE>RE: CF-Server-List V1 #104</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=3D2>I am trying to use the CFERROR combined with the =
CFMAIL tag in the error template to automatically send an email out to =
an administrator when an error occurs. I am also trying to suppress the =
error from displaying in the error template page for the user to view =
so that they can just see a generic message.</FONT></P>
<P><FONT SIZE=3D2>Here is my sample code:</FONT>
</P>
<P><FONT SIZE=3D2>Application.cfm</FONT>
<BR><FONT SIZE=3D2><cferror type=3D"MONITOR" =
template=3D"appnotavail.cfm" =
mailto=3D"[EMAIL PROTECTED]"> </FONT>
</P>
<P><FONT SIZE=3D2>appnotavail.cfm</FONT>
<BR><FONT SIZE=3D2><cfmail to=3D"#error.mailto#" =
from=3D"[EMAIL PROTECTED]" subject=3D"error =
message" type=3D"html"></FONT>
<BR><FONT SIZE=3D2><B>Error =
Message:</b>#ERROR.Diagnostics#<br></FONT>
<BR><FONT SIZE=3D2></cfmail></FONT>
</P>
<P><FONT SIZE=3D2>Thank you,</FONT>
</P>
<P><FONT SIZE=3D2>Bill Huamani</FONT>
</P>
<P><FONT SIZE=3D2>732-562-3290 Phone</FONT>
<BR><FONT SIZE=3D2>732-562-3166 Fax</FONT>
</P>
</BODY>
</HTML>
------_=_NextPart_001_01C0AE56.84B133C0--
------------------------------------------------------------------------------
To unsubscribe, send a message to [EMAIL PROTECTED] with
'unsubscribe' in the body or visit the list page at www.houseoffusion.com