Re: function to send email with query results

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: function to send email with query results
Date: 2015-04-18 06:57:42
Message-ID: 55320066.6030005@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-sql

On 4/17/2015 10:30 PM, Suresh Raja wrote:
>
> I'm looking to write a function to send email with result of a query.
> Is it possible to send email with in a function. Any help is
> appreciated.

I would do that in an application, not a plXXXX sql function. make a
query, fetch the results, format them as you see fit for the email and
toss it at your language-of-choice's email facility.

--
john r pierce, recycling bits in santa cruz

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Andreas Kretschmer 2015-04-18 11:04:32 Re: function to send email with query results
Previous Message Pai-Hung Chen 2015-04-18 06:30:56 Re: ORDER BY for jsonb

Browse pgsql-sql by date

  From Date Subject
Next Message Andreas Kretschmer 2015-04-18 11:04:32 Re: function to send email with query results
Previous Message David G. Johnston 2015-04-18 05:52:50 Re: [SQL] function to send email with query results