As part of my daily work, I need it:
- A process
- Copy some part in the mail and send it to the business.
- Get the output in Notepad,
If I can send mail from the database, then this will save some good time, is it possible? If so, can someone share the sample code?
If you can use Oracle 10G or later also (which is basically UTL_SMTP There is a cover on top).
UTL_MAIL.SEND (sender => 'me @ host' recipient = & gt; you 'host @ host', topic = & gt; 'test email', message = & gt; ; 'Hello!'); but note - from the document:
UTL_MAILby defaultSMTP_OUT_SERVERconfiguration requirements and This includes security risks. In order to installUTL_MAIL, you should take steps to prevent the port defined bySMTP_OUT_SERVER. Flare by data transmission.You must both install
UTL_MAILandSMTP_OUT_SERVER.To install UTL_MAIL:
sqlplus sys / & lt; Pwd & gt; SQL & gt; @ $ ORACLE_HOME / rdbms / admin / utlmail.sql SQL & gt; @ $ ORACLE_HOME / rdbms / admin / prvtmail.plbYou define the
SMTP_OUT_SERVERparameter in the init.ora rdbms initialization file.
Comments
Post a Comment