Also, change the FROM value of your CFMAIL tag to a valid email address.

--
Mosh Teitelbaum
evoch, LLC
Tel: (301) 942-5378
Fax: (301) 933-3651
Email: [EMAIL PROTECTED]
WWW: http://www.evoch.com/

-----Original Message-----
From: Tony Weeg [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 28, 2004 1:26 PM
To: CF-Talk
Subject: RE: variables inside CFX_ZIP

cause it may be an exception type error, and not a database type error.

try all or any as the type of catch, and see what happens.

tw

-----Original Message-----
From: Mickael [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 28, 2004 1:13 PM
To: CF-Talk
Subject: Re: variables inside CFX_ZIP

Now I am not getting that far.  I am having problems with my CFTRY.

Is this correct?

<cftry>

    <cfquery name="BreakConnection" datasource="#variables.dsn#">
    select * from mistake
          </CFQUERY>

  <!--- Catch Database Error --->
  <cfcatch type="database">

   <cfmail to="[EMAIL PROTECTED]" from="Server" subject="Datebase
Error" server="mail.mailserver.com">
   #cfcatch.Message#

   </cfmail>

     </cfcatch>
</cftry>

What I don' t understand is why I am seeing the database error on the screen
and not being sent to me.

Mike
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to