Re: Send email from PostgreSQL, may I ?

From: "Taras Kopets" <tkopets(at)gmail(dot)com>
To: "Gerson Machado" <gersonamach(at)yahoo(dot)com(dot)br>, pgsql-general(at)postgresql(dot)org
Subject: Re: Send email from PostgreSQL, may I ?
Date: 2006-10-27 14:04:54
Message-ID: ce3f16fd0610270704i1ea0046bp7bb2426ed8411fca@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi!

Gerson Machado wrote:

> I need send email directly from PG with on function, where locate this ?

Alvaro Herrera wrote:

> Typically this is bad idea. Better save the email info on a table and
> > fire a NOTIFY. An external daemon would be listening to that
> > notification, and send the email from the data in the table, which it
> > can subsequently delete or mark as used.
> >
>
If you still want to send e-mails directly from PG, you can try to use my
function based on pgmail which will allow you to send e-mail using
mailservers
which require authorization and analyze relpy from smtp to be sure your
e-mail is sent (look in attachment). You will need to install pltclu first.

PS: Maybe anyone knows how to send a unicode characters in e-mail using Tcl?

Taras Kopets

Attachment Content-Type Size
my_tcl_sendmail.sql text/sql 3.7 KB

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Harald Armin Massa 2006-10-27 14:21:30 Re: plpython
Previous Message Alban Hertroys 2006-10-27 13:59:02 Replicating changes