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>&lt;cferror type=3D&quot;MONITOR&quot; =
template=3D&quot;appnotavail.cfm&quot; =
mailto=3D&quot;[EMAIL PROTECTED]&quot;&gt; </FONT>
</P>

<P><FONT SIZE=3D2>appnotavail.cfm</FONT>
<BR><FONT SIZE=3D2>&lt;cfmail to=3D&quot;#error.mailto#&quot; =
from=3D&quot;[EMAIL PROTECTED]&quot; subject=3D&quot;error =
message&quot; type=3D&quot;html&quot;&gt;</FONT>
<BR><FONT SIZE=3D2>&lt;B&gt;Error =
Message:&lt;/b&gt;#ERROR.Diagnostics#&lt;br&gt;</FONT>
<BR><FONT SIZE=3D2>&lt;/cfmail&gt;</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

Reply via email to