Re: Email and Postgres

From: Thomas Good <tomg(at)q8(dot)nrnet(dot)org>
To: Ian Kulmatycki <ikulmatycki(at)movement-inc(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Email and Postgres
Date: 2000-11-07 13:21:50
Message-ID: Pine.LNX.3.96.1001107081724.333A-100000@q8.nrnet.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Mon, 6 Nov 2000, Ian Kulmatycki wrote:

> Hi all,
> Does anyone know if you can send email using pgsql and triggers or some
> other way?
> Thanks

Some other way: I don't use triggers much. My interface does the
work...so:

I have perl do it. Using the binding operator ( =~ ) I search a
text str for a regex. If found the perl script looks up a list of
addresses in a db relation and sends them mail. If you want a
look at my src say the word.

Hmm...thinking on this abit: you could insert into a table (named
shell or whatever) a unix command. Then, when your expr evals to
true you could do a system() call...at least in C or perl...
just thinking aloud!

Good hunting,
Tom

--------------------------------------------------------------------
SVCMC - Center for Behavioral Health
--------------------------------------------------------------------
Thomas Good tomg@ { admin | q8 } .nrnet.org
IS Coordinator / DBA Phone: 718-354-5528
Fax: 718-354-5056
--------------------------------------------------------------------
Powered by: PostgreSQL s l a c k w a r e FreeBSD:
RDBMS |---------- linux The Power To Serve
--------------------------------------------------------------------

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Luz Lopez 2000-11-07 18:16:36 Security
Previous Message Ian Kulmatycki 2000-11-07 07:12:36 Uploading oid over the internet