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 -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general