From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
---|---|
To: | Ramesh Rajamanickam <rameshr(dot)bnk(at)gmail(dot)com> |
Cc: | "pgsql-bugs(at)postgresql(dot)org" <pgsql-bugs(at)postgresql(dot)org> |
Subject: | Re: Query-Sending mail from PostgresSQL |
Date: | 2016-02-25 16:28:19 |
Message-ID: | CAFj8pRCL+4SxyZkhznvvSCcW_aR7YCqrmhrHK8LadVOOt77yDA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
Hi
2016-02-25 4:40 GMT+01:00 Ramesh Rajamanickam <rameshr(dot)bnk(at)gmail(dot)com>:
> Hi,
>
> We are using Postgres. Doing migration from Oracle to Postgres SQL. Now we
> wanted to migrate the Sending mail operation as in oracle. Searched the
> help couldn't able to find the solution. Below is the oracle statement
> used.
>
> UTL_MAIL.send(
> sender => EMAIL_DIST,
> recipients => EMAIL_DIST,
> cc => EMAIL_DIST,
> bcc => EMAIL_DIST,
> subject => Load_Name ,
> message => emesg
> );
>
> Please give your suggestion how we can migrate the above statement to
> Postgres.
>
It is not bug.
PostgreSQL has not this functionality. There is a workaround - you can
write own function in PLPerlu, where you can use some from CPAN libraries
for sending a mail.
http://search.cpan.org/~mivkovic/Mail-Sendmail-0.79/Sendmail.pm
http://postgres.cz/wiki/PL/Perlu_-_Untrusted_Perl_%28en%29
Regards
Pavel
>
> Thanks
> Ramesh Rajamanickam
>
From | Date | Subject | |
---|---|---|---|
Next Message | David G. Johnston | 2016-02-25 16:39:24 | Re: [BUGS] ¿Es posible restringir permisos a nivel de registro? - Is it possible to restrict permissions row level? |
Previous Message | Shulgin, Oleksandr | 2016-02-25 15:52:53 | Re: BUG #13985: Segmentation fault on PREPARE TRANSACTION |