Search Postgresql Archives

Re: [SQL] function to send email with query results

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Friday, April 17, 2015, Suresh Raja <suresh.rajaabc@xxxxxxxxx> wrote:
Hi all:

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. 


Yes...though neither the neither the sql nor the plpgsql languages have the necessary language features to do so - you will need to use something like plperlu.

An (not mutually exclusive) alternative is to create an email queue and write an email sending client application to process that queue.  The main advantages being loose coupling and the ability to send the emails asynchronously.

David J.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux