Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Pro*C and mail
A copy of this was sent to "Pål Jakobsen" <paal.jak_at_nl.telia.no>
(if that email address didn't require changing)
On Tue, 27 Jul 1999 10:59:52 GMT, you wrote:
>Is it possible to send a mail from within a pro*c application when it
>discover any abnormalities running at night.
>
>Thanks in advance.
>
the question is really "can C send an email".
On unix, its very easy. something as simple as:
system( "echo 'Bummer, something went wrong' | mail yourname_at_yourhost" );
will do it. fork/exec or popen can let you do more complex stuff as well.
--
See http://govt.us.oracle.com/~tkyte/ for my columns 'Digging-in to Oracle8i'...
Current article is "Part I of V, Autonomous Transactions" updated June 21'st
Thomas Kyte tkyte_at_us.oracle.com Oracle Service Industries Reston, VA USA
Opinions are mine and do not necessarily reflect those of Oracle Corporation Received on Tue Jul 27 1999 - 07:20:56 CDT
![]() |
![]() |