Re: [GENERAL] Is there a way to Send attachments with email usingpgmail postgreSQl? - Mailing list pgsql-general

From Pavel Stehule
Subject Re: [GENERAL] Is there a way to Send attachments with email usingpgmail postgreSQl?
Date
Msg-id CAFj8pRBq=rPgY7M5c7+eqjnhhh5Ygm+7iS_kmW43sXyVQyhnnA@mail.gmail.com
Whole thread Raw
In response to [GENERAL] Is there a way to Send attachments with email using pgmail postgreSQl?  (nidhi raina <nidhiraina.12@gmail.com>)
List pgsql-general
Hi

2016-12-16 7:07 GMT+01:00 nidhi raina <nidhiraina.12@gmail.com>:

Dear Sir/Mam,

I am also trying to send emails with attachments.please help me out with this.

You can use a untrusted Perl or Python functions



My warning - don't do it - Database is great for data manipulation, bad for communication. Some principles are hard to mix inside database. I like a stored procedures, all power of PostgreSQL, but the communication from database was failure early or in long time.

Better to write simple daemon application, that can monitor table with mails and sends mails related to new record there - you can use LISTEN/NOTIFY mechanism for immediate signal from database to application


Regards

Pavel

 

Regards,
Nidhi


pgsql-general by date:

Previous
From: Christophe Escobar
Date:
Subject: [GENERAL] Avoid using index scan backward when limit order desc
Next
From: Tom Lane
Date:
Subject: Re: [GENERAL] JSON objects merge using || operator