Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: sending an email from a table trigger (before inserting row)

Re: sending an email from a table trigger (before inserting row)

From: Sybrand Bakker <gooiditweg_at_sybrandb.demon.nl>
Date: Thu, 03 Jul 2003 20:54:04 +0200
Message-ID: <eou8gv4e5bdplak89v1nrvc4c3qo44btgo@4ax.com>


On Thu, 3 Jul 2003 15:01:03 +0100, Jeremy <newspostings_at_hazelweb.co.uk> wrote:

>In article <1a75df45.0307030425.febba27_at_posting.google.com>,
>vslabs_at_onwe.co.za says...
>> "Jon" <aaa_at_bbb.ccc> wrote:
>>
>> > I would like to know if it is posible to create a table trigger (before
>> > inserting a row) so I can send an email directly from the trigger after
>> > doing some checking to the data that is going to be inserted. thanks
>>
>> This idea is IMO as brilliant as doing whhat so-called Christian
>> Nigerians are doing. They don't wear condoms even when indulging in
>> casual sex. Jesus after all saves and will protect them.
>>
>> There are better ways to "test & check" data than to do it via
>> trigger. Even in development, I will take a lead pipe to a developer
>> that attempts this. :-)
>>
>> --
>> Billy
>>
>
>I don't think Jon was necessarily saying that the trigger was going to
>do validation per se - perhaps just that under certain data conditions,
>he would like to be able to send an e-mail based on an update to a
>table. If you read it that way, do you have the same opinion?

You are misreading the OP.
He says
I can send an email directly after doing some checking to the data that is going to be inserted. No talk about conditionally sending e-mail.
Even if I misread the e-mail in your fashion I think that Billy is just too kind.
If you really want need to communicate all your failures, use dbsmp_pipe, but don't misuse smtp to waste resources and to clutter up the disk with your silly messages.

Sybrand Bakker, Senior Oracle DBA

To reply remove -verwijderdit from my e-mail address Received on Thu Jul 03 2003 - 13:54:04 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US