Re: Sending email from PL/pgsql - Mailing list pgsql-general

From Tino Wildenhain
Subject Re: Sending email from PL/pgsql
Date
Msg-id 3FA10DEB.8020603@wildenhain.de
Whole thread Raw
In response to Sending email from PL/pgsql  (aderuwe@aqs-carcontrol.be (Alexander Deruwe))
Responses Re: Sending email from PL/pgsql
Re: Sending email from PL/pgsql
List pgsql-general
Hi,

Alexander Deruwe schrieb:
> Hey,
>
> I was wondering if it is possible to send email from within PL/pgsql.
> I'd like to do this to avoid code duplication in multiple frontends.
> Can this be done somehow?  Or do I have to write a C function for this
> purpose?  If so, how does one go about that?
>

And to make it complete, now that plpython is unrestricted,
you can also use plpythonu for this tasks. Works very well
since this was one of the tests I had to make just after
I got my hands on plpythonu ;-)

For example including query results as attachment appeals to me.

Regards
Tino


pgsql-general by date:

Previous
From: Tino Wildenhain
Date:
Subject: Re: pgAdmin vs SQL Server Enterprise Manager
Next
From: Harald Fuchs
Date:
Subject: Re: dump schema schema only?