Re: Sending email from PL/pgsql

From: Shridhar Daithankar <shridhar_daithankar(at)myrealbox(dot)com>
To: Alexander Deruwe <aderuwe(at)aqs-carcontrol(dot)be>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Sending email from PL/pgsql
Date: 2003-10-30 08:59:27
Message-ID: 3FA0D2EF.10605@myrealbox.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Alexander Deruwe wrote:
> 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?

You can write a postgresql function in C that calls libesmtp to send mails.

http://www.stafford.uklinux.net/libesmtp/

Shridhar

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Teodor Sigaev 2003-10-30 08:59:49 Re: tsearch ukrainian stemmer dict
Previous Message Alexander Deruwe 2003-10-30 08:48:06 Sending email from PL/pgsql