Hi , If you want to send E-Mails from PostgreSQL, then use the below Python 3.2 Script as below. I have used ActivePython 3.2 with PostgreSQL 9.1 for sending E-Mails from PostgreSQL. If you want to configure the Python 3.2 with PostgreSQL 9.1 then, please refer the below steps. http://manojadinesh.blogspot.in/2012/06/fatal-python-error-pyinitialize-unable.html Once, your Python 3.2 successful then follow the below steps to send an e-mail. Step 1 ===== postgres=# CREATE OR REPLACE FUNCTION public.send_email(_from Text,_password Text,smtp Text,port INT,receiver text, subject text, send_message text) RETURNS TEXT LANGUAGE plpython3u AS $function$ import smtplib sender = _from receivers = receiver message = ("From: %s\nTo: %s\nSubject: %s\n\n %s" % (_from,receiver,subject,send_message)) try: smtpObj = smtplib.SMTP(smtp,port) smtpObj.starttls() smtpObj.login(_from, _password) smtpObj.sendmail(sender, receivers,message) ...
Bad ass! Nice work just how my likes to think about these complicated systems.
ReplyDeleteHow my mind likes...
DeleteThanks Bob for your inputs.
DeleteGood Work! Waiting for PostgreSQL as well.
ReplyDeleteThanks Chaitanya.
ReplyDeleteBeautiful..Creativity...!
ReplyDeletefirst time i have seen chemical diagram of oracle arch....nice one :)
ReplyDeleteThanks for the compliments
DeleteIts a unique diagram to represent Oracle Arch. Easy to understand. Nice Creativity. Good work !!. Thanks for it.
ReplyDeleteThank you Baji
DeleteCan you make that for DB2 too?
ReplyDeleteSorry. I don't have any DB2 DBA knowledge. I would like to do for the PostgreSQL first, then if time permits, i will do for the DB2 as well.
DeleteBe fun to extend them with replication, as well.
ReplyDeleteThank You. Yes, i will do that for PostgreSQL :)
DeleteI'm waiting for your PostgreSQL architecture.
DeleteWill be posting it as soon as possible.
DeleteTo begin with, when you enlist advancement groups, you ought to set quantifiable qualities that give knowledge into their presentation. These qualities are called key execution pointers (KPIs).
ReplyDeleteKPIs can be connected with group execution in any angle pivotal to your undertaking's a positive outcome, including efficiency, quality, effectiveness, and so forth. You can lay out them at the individual, group, or venture level, making sure to guarantee they are explicit, quantifiable, feasible, important, and time-bound>> hire development teams