| От | A. Kretschmer |
|---|---|
| Тема | Re: Send Email from Postgressql |
| Дата | |
| Msg-id | 20070201150357.GI18319@a-kretschmer.de обсуждение |
| Ответ на | Send Email from Postgressql (brian stapel <brians_224@hotmail.com>) |
| Список | pgsql-novice |
am Thu, dem 01.02.2007, um 8:54:34 -0600 mailte brian stapel folgendes: > Thanks for your time. > > I need to notify a user that data has changed. To accomplish this I'd like to > create a trigger that watches the specified table, that on change, sends the > results returned by a function in the body of an email to a specific user. > > Is this possible? Yes. You can write such with a untrusted pl such as plperlu or plsh. I have a function in plsh, within there i call mutt (a command-line mail programm on linux) to send mail. The To: and other headers are parameters. Andreas -- Andreas Kretschmer Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header) GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера