How do I send mail through PostgreSQL database?
I have installed the TCL untrusted language pltclu.
What should I do next?
How do I send mail through PostgreSQL database?
I have installed the TCL untrusted language pltclu.
What should I do next?
On
You can use py_pgmail from: https://github.com/lcalisto/py_pgmail
Then you can just call:
select py_pgmail('sentFromEmail',array['destination emails'],array['cc'],array['bcc'],'Subject','<USERNAME>','<PASSWORD>','Text message','HTML message','<MAIL.MYSERVER.COM:PORT>')
array['cc'] and array['bcc'] can be empty arrays like array['']
Below code is working