X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id D6CBA9DC85F for ; Thu, 29 Dec 2005 00:53:18 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 25365-04 for ; Thu, 29 Dec 2005 00:53:17 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from fetter.org (dsl092-188-065.sfo1.dsl.speakeasy.net [66.92.188.65]) by postgresql.org (Postfix) with ESMTP id B312F9DC817 for ; Thu, 29 Dec 2005 00:53:16 -0400 (AST) Received: by fetter.org (Postfix, from userid 500) id B8B0CCEB21; Wed, 28 Dec 2005 20:53:15 -0800 (PST) Date: Wed, 28 Dec 2005 20:53:15 -0800 From: David Fetter To: Aftab Alam Cc: pgsql-hackers@postgresql.org Subject: Re: sending mail from Postgres Message-ID: <20051229045315.GB29910@fetter.org> References: <3617.1135712159@sss.pgh.pa.us> <002801c60b5d$f6889c90$ec1010ac@aftabn463> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <002801c60b5d$f6889c90$ec1010ac@aftabn463> User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.102 required=5 tests=[AWL=0.102] X-Spam-Score: 0.102 X-Spam-Level: X-Archive-Number: 200512/1161 X-Sequence-Number: 78009 On Wed, Dec 28, 2005 at 08:52:41AM +0530, Aftab Alam wrote: > Hi there, > > How can i send mail form postgresql. Generally, it is a better idea either to poll your PostgreSQL database and send mail based on that, or use LISTEN/NOTIFY, rather than directly sending mail from your database. Cheers, D -- David Fetter david@fetter.org http://fetter.org/ phone: +1 415 235 3778 Remember to vote!